Skip to content

Commit

Permalink
Silence a constexpr warning when compiling with MSVC and /W4 (#4322)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehMatt authored Jan 23, 2025
1 parent 41539c2 commit a3d05d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/ostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ inline void vprint(std::ostream& os, string_view fmt, format_args args) {
FMT_EXPORT template <typename... T>
void print(std::ostream& os, format_string<T...> fmt, T&&... args) {
fmt::vargs<T...> 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);
Expand Down

0 comments on commit a3d05d7

Please sign in to comment.