mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-06 04:50:05 +00:00
Don't use ignore_incompatible_str in ArgFormatter
This commit is contained in:
parent
63f6c10449
commit
9b6b3382e3
@ -697,8 +697,11 @@ class fmt::internal::ArgFormatter :
|
|||||||
void visit_string(Arg::StringValue<char> value) {
|
void visit_string(Arg::StringValue<char> value) {
|
||||||
writer_.write_str(value, spec_);
|
writer_.write_str(value, spec_);
|
||||||
}
|
}
|
||||||
void visit_wstring(Arg::StringValue<wchar_t> value) {
|
|
||||||
writer_.write_str(ignore_incompatible_str<Char>(value), spec_);
|
using ArgVisitor<fmt::internal::ArgFormatter<Char>, void>::visit_wstring;
|
||||||
|
|
||||||
|
void visit_wstring(Arg::StringValue<Char> value) {
|
||||||
|
writer_.write_str(value, spec_);
|
||||||
}
|
}
|
||||||
|
|
||||||
void visit_pointer(const void *value) {
|
void visit_pointer(const void *value) {
|
||||||
|
2
format.h
2
format.h
@ -533,7 +533,7 @@ class CharTraits<char> : public BasicCharTraits<char> {
|
|||||||
// Conversion from wchar_t to char is not allowed.
|
// Conversion from wchar_t to char is not allowed.
|
||||||
static char convert(wchar_t);
|
static char convert(wchar_t);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static char convert(char value) { return value; }
|
static char convert(char value) { return value; }
|
||||||
|
|
||||||
// Formats a floating-point number.
|
// Formats a floating-point number.
|
||||||
|
Loading…
Reference in New Issue
Block a user