Simplify duration cast

This commit is contained in:
Victor Zverovich
2025-09-13 11:32:03 -07:00
parent 9aee518f3e
commit a3b3d7ed46
2 changed files with 7 additions and 17 deletions
+1
View File
@@ -3792,6 +3792,7 @@ template <typename Char = char> struct format_handler {
FMT_NORETURN void on_error(const char* message) { report_error(message); }
};
// It is used in format-inl.h and os.cc.
using format_func = void (*)(detail::buffer<char>&, int, const char*);
FMT_API void do_report_error(format_func func, int error_code,
const char* message) noexcept;