Replace CharTraits::UnsupportedStrType with WCharHelper::Unsupported

This commit is contained in:
Victor Zverovich 2015-02-26 06:32:00 -08:00
parent 17b9e4db8c
commit 110d4c0ab0

View File

@ -489,8 +489,6 @@ class CharTraits<char> : public BasicCharTraits<char> {
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<wchar_t> : public BasicCharTraits<wchar_t> {
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<Char>::UnsupportedStrType);
void operator<<(
typename internal::WCharHelper<const wchar_t *, Char>::Unsupported);
void operator<<(typename internal::WCharHelper<wchar_t, Char>::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) {