diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index 111993cd40ab..03eb5184882d 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -159,12 +159,13 @@ class is_tuple_formattable_ { static constexpr const bool value = false; }; template class is_tuple_formattable_ { - template - static auto check2(index_sequence, - integer_sequence) -> std::true_type; - static auto check2(...) -> std::false_type; - template - static auto check(index_sequence) -> decltype(check2( + template + static auto all_true(index_sequence, + integer_sequence= 0)...>) -> std::true_type; + static auto all_true(...) -> std::false_type; + + template + static auto check(index_sequence) -> decltype(all_true( index_sequence{}, integer_sequence::type,