From c9ef07bc4e004a379bfa86db9fa513672d100954 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 1 Sep 2024 17:34:47 -0700 Subject: [PATCH] Minor cleanup --- include/fmt/base.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 96e31ea2..398d7402 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -640,10 +640,18 @@ template struct is_char : std::false_type {}; template <> struct is_char : std::true_type {}; template class basic_appender; +using appender = basic_appender; class context; template class generic_context; +// Longer aliases for C++20 compatibility. +template +using basic_format_context = + conditional_t::value, context, + generic_context>; +using format_context = context; + template using buffered_context = conditional_t::value, context, @@ -1894,8 +1902,6 @@ template class basic_appender { FMT_CONSTEXPR20 auto operator++(int) -> basic_appender { return *this; } }; -using appender = basic_appender; - namespace detail { template struct is_back_insert_iterator> : std::true_type {}; @@ -2901,13 +2907,6 @@ template class basic_format_string { template using format_string = basic_format_string...>; -// Longer aliases for C++20 compatibility. -template -using basic_format_context = - conditional_t::value, context, - generic_context>; -using format_context = context; - template using is_formattable = bool_constant< !std::is_base_of