Cleanup the format API

This commit is contained in:
Victor Zverovich
2021-06-02 16:25:21 -07:00
parent f286139d22
commit d142579e97
2 changed files with 19 additions and 20 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ inline void vprint(std::FILE* f, wstring_view fmt, wformat_args args) {
detail::vformat_to(buffer, fmt, args);
buffer.push_back(L'\0');
if (std::fputws(buffer.data(), f) == -1)
FMT_THROW(system_error(errno, "cannot write to file"));
FMT_THROW(system_error(errno, FMT_STRING("cannot write to file")));
}
inline void vprint(wstring_view fmt, wformat_args args) {