diff --git a/include/fmt/compile.h b/include/fmt/compile.h index e4b12f34..64bd3089 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -576,7 +576,9 @@ OutputIt format_to(OutputIt out, const CompiledFormat& cf, } template ::value)> + FMT_ENABLE_IF(internal::is_output_iterator::value && + std::is_base_of::value)> format_to_n_result format_to_n(OutputIt out, size_t n, const CompiledFormat& cf, const Args&... args) {