diff options
author | Gael Guennebaud <g.gael@free.fr> | 2018-03-09 10:00:51 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2018-03-09 10:00:51 +0100 |
commit | f6be7289d703ea608db01bfae1fb41cb93465363 (patch) | |
tree | 7252178a0aaedcabee8a9d3aca7fb4dc7714c9dc /test/selfadjoint.cpp | |
parent | d820ab9edc0b38af4cdb3d545714a0c9083e5a78 (diff) |
Implement better static assertion checking to make sure that the first assertion is a static one and not a runtime one.
Diffstat (limited to 'test/selfadjoint.cpp')
-rw-r--r-- | test/selfadjoint.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<typename MatrixType> void selfadjoint(const MatrixType& m) m4 -= m1.template selfadjointView<Lower>(); VERIFY_IS_APPROX(m4, m2-m3); - VERIFY_RAISES_ASSERT(m2.template selfadjointView<StrictlyUpper>()); - VERIFY_RAISES_ASSERT(m2.template selfadjointView<UnitLower>()); + VERIFY_RAISES_STATIC_ASSERT(m2.template selfadjointView<StrictlyUpper>()); + VERIFY_RAISES_STATIC_ASSERT(m2.template selfadjointView<UnitLower>()); } void bug_159() |