mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-25 06:00:55 +02:00
Fix ambiguous call to fprintf when compiling as a C++20 module (#4548)
This commit is contained in:
@@ -36,7 +36,7 @@ FMT_BEGIN_NAMESPACE
|
||||
FMT_FUNC void assert_fail(const char* file, int line, const char* message) {
|
||||
// Use unchecked std::fprintf to avoid triggering another assertion when
|
||||
// writing to stderr fails.
|
||||
fprintf(stderr, "%s:%d: assertion failed: %s", file, line, message);
|
||||
std::fprintf(stderr, "%s:%d: assertion failed: %s", file, line, message);
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user