diff --git a/format.h b/format.h index e0c07f17..31daf7cf 100644 --- a/format.h +++ b/format.h @@ -489,8 +489,6 @@ class CharTraits : public BasicCharTraits { static char convert(wchar_t); public: - typedef const wchar_t *UnsupportedStrType; - static char convert(char value) { return value; } // Formats a floating-point number. @@ -502,8 +500,6 @@ public: template <> class CharTraits : public BasicCharTraits { public: - typedef const char *UnsupportedStrType; - static wchar_t convert(char value) { return value; } static wchar_t convert(wchar_t value) { return value; } @@ -1614,10 +1610,10 @@ class BasicWriter { // and strings to a char stream. If you want to print a wide string as a // pointer as std::ostream does, cast it to const void*. // Do not implement! - void operator<<(typename internal::CharTraits::UnsupportedStrType); + void operator<<( + typename internal::WCharHelper::Unsupported); void operator<<(typename internal::WCharHelper::Unsupported); - // Appends floating-point length specifier to the format string. // The second argument is only used for overload resolution. void append_float_length(Char *&format_ptr, long double) {