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);