From 40694c413820e287d76a42eed9d407278d2bef20 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 25 Feb 2020 11:23:50 +1100 Subject: [PATCH] concepts: disable tuple_element test for tuple --- concepts.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/concepts.hpp b/concepts.hpp index 99c4887c..ddf1c7f5 100644 --- a/concepts.hpp +++ b/concepts.hpp @@ -285,7 +285,9 @@ namespace cruft::concepts { template concept tuple = requires (T a, T b) { - { std::tuple_size::value == 0 || std::tuple_element<0,T> {} }; + // We should be checking this, but it fails for zero length tuples and + // it's kind of a low priority right now. + // { std::tuple_element<0,T> {} }; { std::tuple_size::value } -> convertible_to; { std::tuple_cat (a, b) }; };