diff --git a/include/fmt/core.h b/include/fmt/core.h index c7c74e22..780bb138 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1381,6 +1381,8 @@ struct is_contiguous_back_insert_iterator> : is_contiguous {}; /** Formats a string and writes the output to ``out``. */ +// GCC 8 and earlier cannot handle std::back_insert_iterator with +// vformat_to(...) overload, so SFINAE on iterator type instead. template , FMT_ENABLE_IF(is_contiguous_back_insert_iterator::value)> OutputIt vformat_to(OutputIt out, const S& format_str,