From 9d7b64a2597a9adcdb79978e09f1042711163a4c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 11 Jun 2019 22:11:47 -0700 Subject: [PATCH] More cleanup --- include/fmt/core.h | 2 -- include/fmt/format.h | 9 +++------ include/fmt/printf.h | 5 +---- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 0cbee42d..d5551f83 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1228,8 +1228,6 @@ struct is_contiguous> : std::true_type {}; namespace internal { -// Workaround for a SFINAE issue in gcc < 9: -// https://stackoverflow.com/q/56436995/471164 template struct is_contiguous_back_insert_iterator : std::false_type {}; template diff --git a/include/fmt/format.h b/include/fmt/format.h index 28bbe0f4..a0fb6d74 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -37,6 +37,8 @@ #include #include +#include "core.h" + #ifdef __clang__ # define FMT_CLANG_VERSION (__clang_major__ * 100 + __clang_minor__) #else @@ -57,8 +59,6 @@ # define FMT_CUDA_VERSION 0 #endif -#include "core.h" - #if FMT_GCC_VERSION >= 406 || FMT_CLANG_VERSION # pragma GCC diagnostic push @@ -2270,10 +2270,7 @@ void handle_dynamic_spec(Spec& value, arg_ref ref, /** The default argument formatter. */ template -class arg_formatter - : public internal::function< - typename internal::arg_formatter_base::iterator>, - public internal::arg_formatter_base { +class arg_formatter : public internal::arg_formatter_base { private: typedef typename Range::value_type char_type; typedef internal::arg_formatter_base base; diff --git a/include/fmt/printf.h b/include/fmt/printf.h index 0828c321..c3a48ed4 100644 --- a/include/fmt/printf.h +++ b/include/fmt/printf.h @@ -204,10 +204,7 @@ template class basic_printf_context; \endrst */ template -class printf_arg_formatter - : public internal::function< - typename internal::arg_formatter_base::iterator>, - public internal::arg_formatter_base { +class printf_arg_formatter : public internal::arg_formatter_base { public: typedef decltype(std::declval().begin()) iterator;