From a3d05d70ce22a18ec67253dcb318d590d5082915 Mon Sep 17 00:00:00 2001 From: Matt <5415177+ZehMatt@users.noreply.github.com> Date: Thu, 23 Jan 2025 22:11:23 +0200 Subject: [PATCH] Silence a constexpr warning when compiling with MSVC and /W4 (#4322) --- include/fmt/ostream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/ostream.h b/include/fmt/ostream.h index 5d893c92..71fd6c88 100644 --- a/include/fmt/ostream.h +++ b/include/fmt/ostream.h @@ -150,7 +150,7 @@ inline void vprint(std::ostream& os, string_view fmt, format_args args) { FMT_EXPORT template void print(std::ostream& os, format_string fmt, T&&... args) { fmt::vargs vargs = {{args...}}; - if (detail::use_utf8) return vprint(os, fmt.str, vargs); + if (detail::const_check(detail::use_utf8)) return vprint(os, fmt.str, vargs); auto buffer = memory_buffer(); detail::vformat_to(buffer, fmt.str, vargs); detail::write_buffer(os, buffer);