commit 504747a10cea45a08a628de493ac901b9bc6391f
parent 090c7a9ee7643c812fd5e40f0c656fbd434bad99
Author: [email protected] <[email protected]>
Date: Fri, 19 Jan 2024 22:42:03 +0000
flush in errorln
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/include/kfr/cometa/string.hpp b/include/kfr/cometa/string.hpp
@@ -407,6 +407,7 @@ CMT_INLINE void errorln(const Args&... args)
constexpr const auto format_str = concat_cstring(details::get_value_fmt<Args>()..., make_cstring("\n"));
const char* str = format_str.data();
std::fprintf(stderr, str, details::pack_value(representation<Args>::get(args))...);
+ std::fflush(stderr);
}
template <typename... Args>