Don't use ignore_incompatible_str in ArgFormatter

This commit is contained in:
vitaut 2015-06-15 07:15:28 -07:00
parent 63f6c10449
commit 9b6b3382e3
2 changed files with 6 additions and 3 deletions

View File

@ -697,8 +697,11 @@ class fmt::internal::ArgFormatter :
void visit_string(Arg::StringValue<char> value) {
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) {

View File

@ -533,7 +533,7 @@ class CharTraits<char> : public BasicCharTraits<char> {
// Conversion from wchar_t to char is not allowed.
static char convert(wchar_t);
public:
public:
static char convert(char value) { return value; }
// Formats a floating-point number.