Commit 60801088 authored by Victor Zverovich's avatar Victor Zverovich

Merge pull request #87 from aruhan/issue/86

Fix format using wostream produces wrong results
parents 130bccbc e8febf7f
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment