Fix Windows build

This commit is contained in:
Victor Zverovich 2014-09-29 09:17:02 -07:00
parent dd90129066
commit 8c4db5081b

View File

@ -430,7 +430,7 @@ int fmt::internal::UTF16ToUTF8::convert(fmt::WStringRef s) {
void fmt::WindowsError::init(
int error_code, StringRef format_str, ArgList args) {
error_code_ = error_code;
Writer w;
MemoryWriter w;
internal::format_windows_error(w, error_code, format(format_str, args));
std::runtime_error &base = *this;
base = std::runtime_error(w.str());