Revert "Make fixed-size Matrix and Array trivially copyable after C++20"

This reverts commit 47eac21072
This commit is contained in:
Antonio Sánchez
2022-02-05 04:40:29 +00:00
parent 979fdd58a4
commit 9441d94dcc
11 changed files with 2 additions and 127 deletions

View File

@@ -42,11 +42,6 @@ template<typename T> struct evaluator_traits;
template< typename T> struct evaluator;
template<typename T> struct has_trivially_copyable_storage
{
static const bool value = false;
};
} // end namespace internal
template<typename T> struct NumTraits;

View File

@@ -1059,16 +1059,6 @@ namespace Eigen {
}
#endif
/**
* \internal
* \brief Macro for conditionally trivial special member functions for supporting trivially copyable types.
* This feature is officially known as C++20's P0848R3 and is enabled on supported compilers.
*/
#if (EIGEN_COMP_CXXVER >= 20) && (EIGEN_COMP_GNUC_STRICT || EIGEN_COMP_MSVC_STRICT)
#define EIGEN_COMP_HAS_P0848R3 1
#else
#define EIGEN_COMP_HAS_P0848R3 0
#endif
/**
* \internal