make fixed-size objects trivially move assignable

This commit is contained in:
Charles Schlosser
2024-11-04 17:55:27 +00:00
committed by Rasmus Munk Larsen
parent 7fd305ecae
commit bb73be8a2e
7 changed files with 15 additions and 18 deletions

View File

@@ -138,6 +138,8 @@ class MatrixBase : public DenseBase<Derived> {
*/
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived& operator=(const MatrixBase& other);
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE constexpr MatrixBase& operator=(MatrixBase&&) = default;
// We cannot inherit here via Base::operator= since it is causing
// trouble with MSVC.