forked from fmtlib/fmt
Replace CharTraits::UnsupportedStrType with WCharHelper::Unsupported
This commit is contained in:
8
format.h
8
format.h
@@ -489,8 +489,6 @@ class CharTraits<char> : public BasicCharTraits<char> {
|
|||||||
static char convert(wchar_t);
|
static char convert(wchar_t);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
typedef const wchar_t *UnsupportedStrType;
|
|
||||||
|
|
||||||
static char convert(char value) { return value; }
|
static char convert(char value) { return value; }
|
||||||
|
|
||||||
// Formats a floating-point number.
|
// Formats a floating-point number.
|
||||||
@@ -502,8 +500,6 @@ public:
|
|||||||
template <>
|
template <>
|
||||||
class CharTraits<wchar_t> : public BasicCharTraits<wchar_t> {
|
class CharTraits<wchar_t> : public BasicCharTraits<wchar_t> {
|
||||||
public:
|
public:
|
||||||
typedef const char *UnsupportedStrType;
|
|
||||||
|
|
||||||
static wchar_t convert(char value) { return value; }
|
static wchar_t convert(char value) { return value; }
|
||||||
static wchar_t convert(wchar_t 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
|
// 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*.
|
// pointer as std::ostream does, cast it to const void*.
|
||||||
// Do not implement!
|
// 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);
|
void operator<<(typename internal::WCharHelper<wchar_t, Char>::Unsupported);
|
||||||
|
|
||||||
|
|
||||||
// Appends floating-point length specifier to the format string.
|
// Appends floating-point length specifier to the format string.
|
||||||
// The second argument is only used for overload resolution.
|
// The second argument is only used for overload resolution.
|
||||||
void append_float_length(Char *&format_ptr, long double) {
|
void append_float_length(Char *&format_ptr, long double) {
|
||||||
|
Reference in New Issue
Block a user