fix tuple (why did that compile?)

master
Daniel Kolesa 2015-08-01 18:34:53 +01:00
parent bcb5f64250
commit ef5951577d
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ namespace detail {
struct TupleLess {
template<typename T, typename U>
bool operator()(const T &x, const U &y) {
Size J = TupleSize<T>::value - I;
constexpr Size J = TupleSize<T>::value - I;
if (get<J>(x) < get<J>(y)) return true;
if (get<J>(y) < get<J>(x)) return false;
return TupleLess<I - 1>()(x, y);