From ef5951577d516de32e5b5fefe62c3a95503ca2aa Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 1 Aug 2015 18:34:53 +0100 Subject: [PATCH] fix tuple (why did that compile?) --- ostd/tuple.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ostd/tuple.hh b/ostd/tuple.hh index 579b2be..7fd4ded 100644 --- a/ostd/tuple.hh +++ b/ostd/tuple.hh @@ -515,7 +515,7 @@ namespace detail { struct TupleLess { template bool operator()(const T &x, const U &y) { - Size J = TupleSize::value - I; + constexpr Size J = TupleSize::value - I; if (get(x) < get(y)) return true; if (get(y) < get(x)) return false; return TupleLess()(x, y);