mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-13 01:43:13 +08:00
Fix C++20 constexpr test compilation failures
This commit is contained in:
parent
5133c836c0
commit
2fc63808e4
@ -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
|
||||
};
|
||||
|
||||
/***************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user