From 110d4c0ab0e19cbc081120094de0486627becc8c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 26 Feb 2015 06:32:00 -0800 Subject: [PATCH] Replace CharTraits::UnsupportedStrType with WCharHelper::Unsupported --- format.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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) {