diff --git a/include/fmt/format.h b/include/fmt/format.h index f9fca10e7323..a0eab006f85e 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1229,6 +1229,8 @@ FMT_CONSTEXPR unsigned basic_parse_context::next_arg_id() { return 0; } +struct format_string {}; + namespace internal { template @@ -1525,8 +1527,6 @@ class arg_formatter_base { } }; -struct format_string {}; - template struct is_format_string: std::integral_constant::value> {}; @@ -3567,7 +3567,7 @@ operator"" _a(const wchar_t *s, std::size_t) { return {s}; } #endif // FMT_USE_USER_DEFINED_LITERALS #define FMT_STRING(s) [] { \ - struct S : fmt::internal::format_string { \ + struct S : fmt::format_string { \ static FMT_CONSTEXPR auto data() { return s; } \ static FMT_CONSTEXPR size_t size() { return sizeof(s); } \ }; \