From a9d62d3f354cb598b809ead32ef39e23e854d2f1 Mon Sep 17 00:00:00 2001 From: Dmitriy Kurkin Date: Tue, 14 Apr 2020 14:50:28 +0800 Subject: [PATCH] Add check for CompiledFormat to avoid ambiguous call --- include/fmt/compile.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {