mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-02 07:09:44 +01:00
Disable remaining implicit conversions
This commit is contained in:
@@ -167,10 +167,10 @@ void detail::format_windows_error(detail::buffer<char>& out, int error_code,
|
||||
FMT_TRY {
|
||||
system_message msg(error_code);
|
||||
if (msg) {
|
||||
utf16_to_utf8 utf8_message;
|
||||
auto utf8_message = utf16_to_utf8();
|
||||
if (utf8_message.convert(msg) == ERROR_SUCCESS) {
|
||||
fmt::format_to(buffer_appender<char>(out), "{}: {}", message,
|
||||
utf8_message);
|
||||
string_view(utf8_message));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user