mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Merge pull request #87 from aruhan/issue/86
Fix format using wostream produces wrong results
This commit is contained in:
commit
6080108802
2
format.h
2
format.h
@ -2070,7 +2070,7 @@ void format(BasicFormatter<Char> &f, const Char *&format_str, const T &value) {
|
||||
internal::Value &arg_value = arg;
|
||||
std::basic_string<Char> str = os.str();
|
||||
arg_value = internal::MakeValue<Char>(str);
|
||||
arg.type = internal::Arg::STRING;
|
||||
arg.type = static_cast<internal::Arg::Type>(internal::MakeValue<Char>::type(str));
|
||||
format_str = f.format(format_str, arg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user