From fe19c266ce5aeb239af256c7e34dc8c10b01918b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 29 Apr 2018 08:35:20 -0700 Subject: [PATCH] Move format_string to fmt namespace for ADL --- include/fmt/format.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index f9fca10e..a0eab006 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); } \ }; \