diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index 3290fbee..f225f7be 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -203,7 +203,7 @@ using make_index_sequence = make_integer_sequence; #endif template -using tuple_index_sequence = make_index_sequence>; +using tuple_index_sequence = make_index_sequence::value>; template ::value> struct is_tuple_formattable_ { @@ -211,9 +211,14 @@ struct is_tuple_formattable_ { }; template struct is_tuple_formattable_ { template - static std::integral_constant< - bool, (fmt::is_formattable>::value && ...)> - check(index_sequence); + static std::true_type + check2(index_sequence,integer_sequence); + static std::false_type + check2(...); + template + static decltype(check2(index_sequence{}, + integer_sequence::type>::value)...>{})) + check(index_sequence); public: static constexpr const bool value =