Compare commits

...

2 Commits

Author SHA1 Message Date
friedkeenan
b27a6151bf Move FMT_USE_CONSTEVAL check to FMT_STRING directly 2025-11-21 09:12:33 -06:00
friedkeenan
270480db68 Make FMT_STRING redundant when FMT_USE_CONSTEVAL is enabled 2025-11-20 13:30:10 -06:00

View File

@ -4260,7 +4260,11 @@ class format_int {
* // A compile-time error because 'd' is an invalid specifier for strings.
* std::string s = fmt::format(FMT_STRING("{:d}"), "foo");
*/
#define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::detail::compile_string)
#if FMT_USE_CONSTEVAL
# define FMT_STRING(s) s
#else
# define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::detail::compile_string)
#endif // FMT_USE_CONSTEVAL
FMT_API auto vsystem_error(int error_code, string_view fmt, format_args args)
-> std::system_error;