From 2265a5e025601d501903c772799ce29fb73c8efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20S=C3=A1nchez?= Date: Wed, 23 Apr 2025 00:05:02 +0000 Subject: [PATCH] Fix commainitializer noexcept test. --- Eigen/src/Core/CommaInitializer.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/CommaInitializer.h b/Eigen/src/Core/CommaInitializer.h index 4b9ed7735..c41411790 100644 --- a/Eigen/src/Core/CommaInitializer.h +++ b/Eigen/src/Core/CommaInitializer.h @@ -90,7 +90,13 @@ struct CommaInitializer { return *this; } - EIGEN_DEVICE_FUNC inline ~CommaInitializer() { finished(); } + EIGEN_DEVICE_FUNC inline ~CommaInitializer() +#if defined VERIFY_RAISES_ASSERT && (!defined EIGEN_NO_ASSERTION_CHECKING) && defined EIGEN_EXCEPTIONS + noexcept(false) // Eigen::eigen_assert_exception +#endif + { + finished(); + } /** \returns the built matrix once all its coefficients have been set. * Calling finished is 100% optional. Its purpose is to write expressions