mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix C++20 constexpr test compilation failures
This commit is contained in:
committed by
Charles Schlosser
parent
5133c836c0
commit
2fc63808e4
@@ -121,8 +121,12 @@ struct EigenBase {
|
|||||||
* as the testsuite asserts std::is_trivially_destructible
|
* as the testsuite asserts std::is_trivially_destructible
|
||||||
*/
|
*/
|
||||||
#if !defined(EIGEN_NO_DEBUG) && !defined(EIGEN_TESTING_PLAINOBJECT_CTOR)
|
#if !defined(EIGEN_NO_DEBUG) && !defined(EIGEN_TESTING_PLAINOBJECT_CTOR)
|
||||||
|
#if __cpp_constexpr >= 201907L
|
||||||
|
EIGEN_DEVICE_FUNC constexpr ~EigenBase() {}
|
||||||
|
#else
|
||||||
EIGEN_DEVICE_FUNC ~EigenBase() {}
|
EIGEN_DEVICE_FUNC ~EigenBase() {}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user