mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix tuple compilation for VS2017.
VS2017 doesn't like deducing alias types, leading to a bunch of compile errors for functions involving the `tuple` alias. Replacing with `TupleImpl` seems to solve this, allowing the test to compile/pass.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
d0d34524a1
commit
fd5f48e465
@@ -99,7 +99,7 @@ void basic_tuple_test() {
|
||||
VERIFY_IS_EQUAL(x, tuple_impl::get<0>(tuple3));
|
||||
VERIFY_IS_EQUAL(y, tuple_impl::get<1>(tuple3));
|
||||
VERIFY_IS_EQUAL(z, tuple_impl::get<2>(tuple3));
|
||||
tuple<int, float, double> tuple3c(-2, -2, -2);
|
||||
tuple<int, float, double> tuple3c(-2, -2.0f, -2.0);
|
||||
tuple3c = std::move(tuple3b);
|
||||
VERIFY_IS_EQUAL(tuple_impl::get<0>(tuple3c), tuple_impl::get<0>(tuple3));
|
||||
VERIFY_IS_EQUAL(tuple_impl::get<1>(tuple3c), tuple_impl::get<1>(tuple3));
|
||||
|
||||
Reference in New Issue
Block a user