Revert "make fixed-size objects trivially move assignable"

This commit is contained in:
Rasmus Munk Larsen
2024-11-06 01:09:38 +00:00
parent d49021212b
commit 122be167cd
7 changed files with 18 additions and 15 deletions

View File

@@ -474,7 +474,10 @@ class PlainObjectBase : public internal::dense_xpr_base<Derived>::type
protected:
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE constexpr PlainObjectBase() = default;
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE constexpr PlainObjectBase(PlainObjectBase&&) = default;
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE constexpr PlainObjectBase& operator=(PlainObjectBase&&) = default;
EIGEN_DEVICE_FUNC constexpr PlainObjectBase& operator=(PlainObjectBase&& other) EIGEN_NOEXCEPT {
m_storage = std::move(other.m_storage);
return *this;
}
/** Copy constructor */
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE constexpr PlainObjectBase(const PlainObjectBase&) = default;