mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +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(
|
void fmt::WindowsError::init(
|
||||||
int error_code, StringRef format_str, ArgList args) {
|
int error_code, StringRef format_str, ArgList args) {
|
||||||
error_code_ = error_code;
|
error_code_ = error_code;
|
||||||
Writer w;
|
MemoryWriter w;
|
||||||
internal::format_windows_error(w, error_code, format(format_str, args));
|
internal::format_windows_error(w, error_code, format(format_str, args));
|
||||||
std::runtime_error &base = *this;
|
std::runtime_error &base = *this;
|
||||||
base = std::runtime_error(w.str());
|
base = std::runtime_error(w.str());
|
||||||
|
Loading…
Reference in New Issue
Block a user