remove annotation for first declaration of default con/destruction

This commit is contained in:
acxz 2020-10-12 21:52:00 -04:00 committed by Rasmus Munk Larsen
parent e24a1f57e3
commit b714dd9701

View File

@ -1103,7 +1103,7 @@ namespace Eigen {
* This is necessary, because the implicit definition is deprecated if the copy-assignment is overridden. * This is necessary, because the implicit definition is deprecated if the copy-assignment is overridden.
*/ */
#if EIGEN_HAS_CXX11 #if EIGEN_HAS_CXX11
#define EIGEN_DEFAULT_COPY_CONSTRUCTOR(CLASS) EIGEN_DEVICE_FUNC CLASS(const CLASS&) = default; #define EIGEN_DEFAULT_COPY_CONSTRUCTOR(CLASS) CLASS(const CLASS&) = default;
#else #else
#define EIGEN_DEFAULT_COPY_CONSTRUCTOR(CLASS) #define EIGEN_DEFAULT_COPY_CONSTRUCTOR(CLASS)
#endif #endif
@ -1128,12 +1128,12 @@ namespace Eigen {
*/ */
#if EIGEN_HAS_CXX11 #if EIGEN_HAS_CXX11
#define EIGEN_DEFAULT_EMPTY_CONSTRUCTOR_AND_DESTRUCTOR(Derived) \ #define EIGEN_DEFAULT_EMPTY_CONSTRUCTOR_AND_DESTRUCTOR(Derived) \
EIGEN_DEVICE_FUNC Derived() = default; \ Derived() = default; \
EIGEN_DEVICE_FUNC ~Derived() = default; ~Derived() = default;
#else #else
#define EIGEN_DEFAULT_EMPTY_CONSTRUCTOR_AND_DESTRUCTOR(Derived) \ #define EIGEN_DEFAULT_EMPTY_CONSTRUCTOR_AND_DESTRUCTOR(Derived) \
EIGEN_DEVICE_FUNC Derived() {}; \ Derived() {}; \
/* EIGEN_DEVICE_FUNC ~Derived() {}; */ /* ~Derived() {}; */
#endif #endif