Skip to content

Commit e28c371

Browse files
authored
Fix ambiguous call to fprintf when compiling as a C++20 module (fmtlib#4548)
1 parent 6b6cdd9 commit e28c371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fmt/format-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ FMT_BEGIN_NAMESPACE
3636
FMT_FUNC void assert_fail(const char* file, int line, const char* message) {
3737
// Use unchecked std::fprintf to avoid triggering another assertion when
3838
// writing to stderr fails.
39-
fprintf(stderr, "%s:%d: assertion failed: %s", file, line, message);
39+
std::fprintf(stderr, "%s:%d: assertion failed: %s", file, line, message);
4040
abort();
4141
}
4242
#endif

0 commit comments

Comments
 (0)