diff --git a/include/fmt/color.h b/include/fmt/color.h index 9537e070..a1ee3b03 100644 --- a/include/fmt/color.h +++ b/include/fmt/color.h @@ -266,10 +266,6 @@ template <> inline void reset_color(FILE *stream) FMT_NOEXCEPT { fputs(internal::data::WRESET_COLOR, stream); } - -template -struct is_format_string: std::integral_constant< - bool, std::is_empty>::value> {}; } // namespace internal template < diff --git a/include/fmt/core.h b/include/fmt/core.h index 4820219d..68aa5722 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1285,6 +1285,9 @@ struct format_string_traits< basic_string_view, S>::value>::type> : format_string_traits_base {}; +template +struct is_format_string : std::is_empty> {}; + template struct is_compile_string : std::integral_constant::value> {}; diff --git a/include/fmt/format.h b/include/fmt/format.h index a0d2ad76..58c379c7 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3507,7 +3507,8 @@ inline OutputIt vformat_to( \endrst */ template -inline OutputIt format_to(OutputIt out, const String &format_str, +inline typename std::enable_if::value, OutputIt>::type + format_to(OutputIt out, const String &format_str, const Args &... args) { internal::check_format_string(format_str); typedef typename format_context_t::type context_t;