From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 29 Jan 2024 07:48:48 -0800 Subject: [PATCH 2/2] Fix tautological-compare 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 3638fffb83bce6035c13659f26fe13749c8b19ea..767378c6203fc34e7d763075bd663d2bb6774a97 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -206,12 +206,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,