Modernize internal utilities for C++14

libeigen/eigen!2490
This commit is contained in:
Florian Maurin
2026-05-01 09:54:04 -07:00
committed by Rasmus Munk Larsen
parent 97bf5493da
commit 879885e10d
32 changed files with 113 additions and 299 deletions
+2 -2
View File
@@ -1329,8 +1329,8 @@ struct cast_tests_impl {
template <size_t i = 0, size_t j = i + 1, bool Done = (i >= ScalarTupleSize - 1) || (j >= ScalarTupleSize)>
static std::enable_if_t<!Done> run() {
using Type1 = typename std::tuple_element<i, ScalarTuple>::type;
using Type2 = typename std::tuple_element<j, ScalarTuple>::type;
using Type1 = std::tuple_element_t<i, ScalarTuple>;
using Type2 = std::tuple_element_t<j, ScalarTuple>;
cast_test_impl<Type1, Type2, RowsAtCompileTime, ColsAtCompileTime>::run();
cast_test_impl<Type2, Type1, RowsAtCompileTime, ColsAtCompileTime>::run();
static constexpr size_t next_i = (j == ScalarTupleSize - 1) ? (i + 1) : (i + 0);