From f6be7289d703ea608db01bfae1fb41cb93465363 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 9 Mar 2018 10:00:51 +0100 Subject: Implement better static assertion checking to make sure that the first assertion is a static one and not a runtime one. --- test/selfadjoint.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/selfadjoint.cpp') diff --git a/test/selfadjoint.cpp b/test/selfadjoint.cpp index 5ac219352..aaa4888bd 100644 --- a/test/selfadjoint.cpp +++ b/test/selfadjoint.cpp @@ -7,7 +7,7 @@ // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. -#define EIGEN_NO_STATIC_ASSERT +#define TEST_CHECK_STATIC_ASSERTIONS #include "main.h" // This file tests the basic selfadjointView API, @@ -47,8 +47,8 @@ template void selfadjoint(const MatrixType& m) m4 -= m1.template selfadjointView(); VERIFY_IS_APPROX(m4, m2-m3); - VERIFY_RAISES_ASSERT(m2.template selfadjointView()); - VERIFY_RAISES_ASSERT(m2.template selfadjointView()); + VERIFY_RAISES_STATIC_ASSERT(m2.template selfadjointView()); + VERIFY_RAISES_STATIC_ASSERT(m2.template selfadjointView()); } void bug_159() -- cgit v1.2.3