mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Fix Windows build
This commit is contained in:
parent
dd90129066
commit
8c4db5081b
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user