We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f20b166 commit 9f197b2Copy full SHA for 9f197b2
include/fmt/format.h
@@ -4257,7 +4257,11 @@ class format_int {
4257
* // A compile-time error because 'd' is an invalid specifier for strings.
4258
* std::string s = fmt::format(FMT_STRING("{:d}"), "foo");
4259
*/
4260
-#define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::detail::compile_string)
+#if FMT_USE_CONSTEVAL
4261
+# define FMT_STRING(s) s
4262
+#else
4263
+# define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::detail::compile_string)
4264
+#endif // FMT_USE_CONSTEVAL
4265
4266
FMT_API auto vsystem_error(int error_code, string_view fmt, format_args args)
4267
-> std::system_error;
0 commit comments