Fix C++20 constexpr test compilation failures

This commit is contained in:
Tyler Veness 2024-11-18 01:56:55 +00:00 committed by Charles Schlosser
parent 5133c836c0
commit 2fc63808e4

View File

@ -121,8 +121,12 @@ struct EigenBase {
* as the testsuite asserts std::is_trivially_destructible
*/
#if !defined(EIGEN_NO_DEBUG) && !defined(EIGEN_TESTING_PLAINOBJECT_CTOR)
#if __cpp_constexpr >= 201907L
EIGEN_DEVICE_FUNC constexpr ~EigenBase() {}
#else
EIGEN_DEVICE_FUNC ~EigenBase() {}
#endif
#endif
};
/***************************************************************************