From 9935396b152f906042c8ff41c439b4592cd1a981 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Tue, 25 Feb 2025 19:38:47 +0000 Subject: [PATCH] Specify constructor template arguments for ConstexprTest struct --- test/constexpr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/constexpr.cpp b/test/constexpr.cpp index 826d4e249..ecfda0ae9 100644 --- a/test/constexpr.cpp +++ b/test/constexpr.cpp @@ -41,12 +41,12 @@ EIGEN_DECLARE_TEST(constexpr) { static_assert(vec.coeff(0, 1) == 2); // Check assignment. A wrapper struct is used to avoid copy ellision. - constexpr ConstexprTest obj1(Matrix2d({{1, 2}, {3, 4}})); + constexpr ConstexprTest obj1(Matrix2d({{1, 2}, {3, 4}})); VERIFY_IS_EQUAL(obj1.A.size(), 4); static_assert(obj1.A(0, 0) == 1); static_assert(obj1.A(0) == 1); static_assert(obj1.A.coeff(0, 1) == 2); - constexpr ConstexprTest obj2(Matrix3d({{1, 2, 3}, {4, 5, 6}, {7, 8, 9}})); + constexpr ConstexprTest obj2(Matrix3d({{1, 2, 3}, {4, 5, 6}, {7, 8, 9}})); VERIFY_IS_EQUAL(obj2.A.size(), 9); static_assert(obj2.A(0, 0) == 1); static_assert(obj2.A(0) == 1);