Skip to content

Commit 110d4c0

Browse files
committed
Replace CharTraits::UnsupportedStrType with WCharHelper::Unsupported
1 parent 17b9e4d commit 110d4c0

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎format.h‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,6 @@ class CharTraits<char> : public BasicCharTraits<char> {
489489
static char convert(wchar_t);
490490

491491
public:
492-
typedef const wchar_t *UnsupportedStrType;
493-
494492
static char convert(char value) { return value; }
495493

496494
// Formats a floating-point number.
@@ -502,8 +500,6 @@ class CharTraits<char> : public BasicCharTraits<char> {
502500
template <>
503501
class CharTraits<wchar_t> : public BasicCharTraits<wchar_t> {
504502
public:
505-
typedef const char *UnsupportedStrType;
506-
507503
static wchar_t convert(char value) { return value; }
508504
static wchar_t convert(wchar_t value) { return value; }
509505

@@ -1614,10 +1610,10 @@ class BasicWriter {
16141610
// and strings to a char stream. If you want to print a wide string as a
16151611
// pointer as std::ostream does, cast it to const void*.
16161612
// Do not implement!
1617-
void operator<<(typename internal::CharTraits<Char>::UnsupportedStrType);
1613+
void operator<<(
1614+
typename internal::WCharHelper<const wchar_t *, Char>::Unsupported);
16181615
void operator<<(typename internal::WCharHelper<wchar_t, Char>::Unsupported);
16191616

1620-
16211617
// Appends floating-point length specifier to the format string.
16221618
// The second argument is only used for overload resolution.
16231619
void append_float_length(Char *&format_ptr, long double) {

0 commit comments

Comments
 (0)