Fix build

This commit is contained in:
Victor Zverovich 2017-02-05 06:59:59 -08:00
parent a13b96ed88
commit bb1c82ef7d

View File

@ -2199,7 +2199,7 @@ class basic_writer {
private: private:
// Output buffer. // Output buffer.
buffer<Char> &buffer_; fmt::buffer<Char> &buffer_;
FMT_DISALLOW_COPY_AND_ASSIGN(basic_writer); FMT_DISALLOW_COPY_AND_ASSIGN(basic_writer);
@ -2302,7 +2302,7 @@ class basic_writer {
/** /**
Constructs a ``basic_writer`` object. Constructs a ``basic_writer`` object.
*/ */
explicit basic_writer(buffer<Char> &b) : buffer_(b) {} explicit basic_writer(fmt::buffer<Char> &b) : buffer_(b) {}
public: public:
/** /**
@ -2443,7 +2443,7 @@ class basic_writer {
void clear() FMT_NOEXCEPT { buffer_.clear(); } void clear() FMT_NOEXCEPT { buffer_.clear(); }
buffer<Char> &buffer() FMT_NOEXCEPT { return buffer_; } fmt::buffer<Char> &buffer() FMT_NOEXCEPT { return buffer_; }
}; };
template <typename Char> template <typename Char>
@ -2472,7 +2472,7 @@ typename basic_writer<Char>::CharPtr basic_writer<Char>::write_str(
template <typename Char> template <typename Char>
template <typename StrChar> template <typename StrChar>
void basic_writer<Char>::write_str( void basic_writer<Char>::write_str(
BasicStringRef<StrChar> s, const basic_writer<Char>::format_specs &spec) { BasicStringRef<StrChar> s, const format_specs &spec) {
// Check if StrChar is convertible to Char. // Check if StrChar is convertible to Char.
internal::CharTraits<Char>::convert(StrChar()); internal::CharTraits<Char>::convert(StrChar());
if (spec.type_ && spec.type_ != 's') if (spec.type_ && spec.type_ != 's')