forked from OctaForge/libostd
fix tuple (why did that compile?)
parent
bcb5f64250
commit
ef5951577d
|
@ -515,7 +515,7 @@ namespace detail {
|
||||||
struct TupleLess {
|
struct TupleLess {
|
||||||
template<typename T, typename U>
|
template<typename T, typename U>
|
||||||
bool operator()(const T &x, const U &y) {
|
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>(x) < get<J>(y)) return true;
|
||||||
if (get<J>(y) < get<J>(x)) return false;
|
if (get<J>(y) < get<J>(x)) return false;
|
||||||
return TupleLess<I - 1>()(x, y);
|
return TupleLess<I - 1>()(x, y);
|
||||||
|
|
Loading…
Reference in New Issue