From 64db979e38ec644b1798e41610b28c8d2c8a2739 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Mon, 7 Apr 2025 15:35:55 -0700 Subject: [PATCH] Added a missing FMT_STRING in fmt::println() (#4407) --- include/fmt/ostream.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/ostream.h b/include/fmt/ostream.h index 71fd6c88..7bec4efe 100644 --- a/include/fmt/ostream.h +++ b/include/fmt/ostream.h @@ -158,7 +158,8 @@ void print(std::ostream& os, format_string fmt, T&&... args) { FMT_EXPORT template void println(std::ostream& os, format_string fmt, T&&... args) { - fmt::print(os, "{}\n", fmt::format(fmt, std::forward(args)...)); + fmt::print(os, FMT_STRING("{}\n"), + fmt::format(fmt, std::forward(args)...)); } FMT_END_NAMESPACE