diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-06-03 14:28:25 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-06-03 14:28:25 +0200 |
commit | 8d97ba6b2251aabf325ff74f24959ceaa85cf11e (patch) | |
tree | 0bd426a49b729fa2a9260bad8cab750cc39587d4 /Eigen/src/Core/Matrix.h | |
parent | e8b922ca631b47e9a1044454402ff0ed5e77e18c (diff) |
bug #725: make move ctor/assignment noexcept.
Diffstat (limited to 'Eigen/src/Core/Matrix.h')
-rw-r--r-- | Eigen/src/Core/Matrix.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index 86fce9571..502b7935a 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -270,7 +270,7 @@ class Matrix #if EIGEN_HAS_RVALUE_REFERENCES EIGEN_DEVICE_FUNC - Matrix(Matrix&& other) + Matrix(Matrix&& other) EIGEN_NOEXCEPT_IF(std::is_nothrow_move_constructible<Scalar>::value) : Base(std::move(other)) { Base::_check_template_params(); @@ -278,7 +278,7 @@ class Matrix Base::_set_noalias(other); } EIGEN_DEVICE_FUNC - Matrix& operator=(Matrix&& other) + Matrix& operator=(Matrix&& other) EIGEN_NOEXCEPT_IF(std::is_nothrow_move_assignable<Scalar>::value) { other.swap(*this); return *this; |