From 0ed17f7a97213d1080e634b8502fedd99e380b18 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 29 Jan 2024 07:48:48 -0800 Subject: [PATCH] Fix a warning --- include/fmt/ranges.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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,