mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-24 04:24:55 +08:00
Compare commits
1 Commits
1cd5ab89c7
...
7f91e9e37a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f91e9e37a |
@ -4231,7 +4231,7 @@ class format_int {
|
||||
inline auto str() const -> std::string { return {str_, size()}; }
|
||||
};
|
||||
|
||||
#if FMT_CLANG_ANALYZER
|
||||
#if FMT_USE_CONSTEVAL || FMT_CLANG_ANALYZER
|
||||
# define FMT_STRING_IMPL(s, base) s
|
||||
#else
|
||||
# define FMT_STRING_IMPL(s, base) \
|
||||
@ -4260,11 +4260,7 @@ class format_int {
|
||||
* // A compile-time error because 'd' is an invalid specifier for strings.
|
||||
* std::string s = fmt::format(FMT_STRING("{:d}"), "foo");
|
||||
*/
|
||||
#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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user