mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-24 19:29:47 +01:00
Make FMT_STRING redundant when FMT_USE_CONSTEVAL is enabled (#4612)
This commit is contained in:
@@ -4257,7 +4257,11 @@ class format_int {
|
|||||||
* // A compile-time error because 'd' is an invalid specifier for strings.
|
* // A compile-time error because 'd' is an invalid specifier for strings.
|
||||||
* std::string s = fmt::format(FMT_STRING("{:d}"), "foo");
|
* 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)
|
FMT_API auto vsystem_error(int error_code, string_view fmt, format_args args)
|
||||||
-> std::system_error;
|
-> std::system_error;
|
||||||
|
|||||||
Reference in New Issue
Block a user