mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Add check for CompiledFormat to avoid ambiguous call
This commit is contained in:
parent
fdcf7870a2
commit
a9d62d3f35
@ -576,7 +576,9 @@ OutputIt format_to(OutputIt out, const CompiledFormat& cf,
|
||||
}
|
||||
|
||||
template <typename OutputIt, typename CompiledFormat, typename... Args,
|
||||
FMT_ENABLE_IF(internal::is_output_iterator<OutputIt>::value)>
|
||||
FMT_ENABLE_IF(internal::is_output_iterator<OutputIt>::value &&
|
||||
std::is_base_of<internal::basic_compiled_format,
|
||||
CompiledFormat>::value)>
|
||||
format_to_n_result<OutputIt> format_to_n(OutputIt out, size_t n,
|
||||
const CompiledFormat& cf,
|
||||
const Args&... args) {
|
||||
|
Loading…
Reference in New Issue
Block a user