Commit 8c4db508 authored by Victor Zverovich's avatar Victor Zverovich

Fix Windows build

parent dd901290
......@@ -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());
......
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