diff options
Diffstat (limited to 'test/swap.cpp')
-rw-r--r-- | test/swap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/swap.cpp b/test/swap.cpp index f76e3624d..5b259d3ec 100644 --- a/test/swap.cpp +++ b/test/swap.cpp @@ -28,8 +28,8 @@ template<typename MatrixType> void swap(const MatrixType& m) typedef typename MatrixType::Scalar Scalar; eigen_assert((!internal::is_same<MatrixType,OtherMatrixType>::value)); - typename MatrixType::Index rows = m.rows(); - typename MatrixType::Index cols = m.cols(); + Index rows = m.rows(); + Index cols = m.cols(); // construct 3 matrix guaranteed to be distinct MatrixType m1 = MatrixType::Random(rows,cols); @@ -83,7 +83,7 @@ template<typename MatrixType> void swap(const MatrixType& m) } } -void test_swap() +EIGEN_DECLARE_TEST(swap) { int s = internal::random<int>(1,EIGEN_TEST_MAX_SIZE); CALL_SUBTEST_1( swap(Matrix3f()) ); // fixed size, no vectorization |