Fix compiler warnings on Visual Studio 2017

Should not be a constexpr, this caused cryptic errors in template code when compiling the code with older compilers.
This commit is contained in:
Kawe Mazidjatari 2023-11-25 11:23:19 +01:00
parent 35fe8dad04
commit 26a7e90354

View File

@ -3004,7 +3004,7 @@ void check_format_string(S format_str) {
FMT_CONSTEXPR auto s = basic_string_view<typename S::char_type>(format_str);
using checker = format_string_checker<typename S::char_type, error_handler,
remove_cvref_t<Args>...>;
FMT_CONSTEXPR bool invalid_format =
/*FMT_CONSTEXPR*/bool invalid_format =
(parse_format_string<true>(s, checker(s, {})), true);
ignore_unused(invalid_format);
}