Fix format using wostream produces wrong results

This commit is contained in:
aruhan 2015-01-05 22:33:18 +09:00
parent 130bccbcbf
commit e8febf7f4b

View File

@ -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);
}