Fix flushing C++ iostreams before calling write_console() (#3689)

This change correctly implements https://wg21.link/P2539/ for both
C streams and C++ iostreams.

Fixes #3688.
This commit is contained in:
Dimitrij Mijoski
2023-10-25 13:13:31 -07:00
committed by GitHub
parent 3b7f58a8b3
commit 2a2c6e676f
3 changed files with 33 additions and 16 deletions
+1 -1
View File
@@ -1038,7 +1038,7 @@ struct is_contiguous<basic_memory_buffer<T, SIZE, Allocator>> : std::true_type {
FMT_END_EXPORT
namespace detail {
FMT_API bool write_console(std::FILE* f, string_view text);
FMT_API bool write_console(int fd, string_view text);
FMT_API void print(std::FILE*, string_view);
} // namespace detail