Changeset 3585
- Timestamp:
- Jan 19, 2017, 6:01:19 AM (7 years ago)
- Location:
- trunk/yat/utility
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/Matrix.cc
r2881 r3585 68 68 { 69 69 } 70 71 72 #ifdef YAT_HAVE_RVALUE 73 Matrix::Matrix(Matrix&& other) 74 : blas_result_(NULL), m_(NULL) 75 { 76 std::swap(m_, other.m_); 77 } 78 #endif 70 79 71 80 … … 431 440 432 441 442 #ifdef YAT_HAVE_RVALUE 443 Matrix& Matrix::operator=(Matrix&& other) 444 { 445 std::swap(m_, other.m_); 446 return *this; 447 } 448 #endif 449 450 433 451 const Matrix& Matrix::operator+=(const Matrix& other) 434 452 { -
trunk/yat/utility/Matrix.h
r2735 r3585 26 26 along with yat. If not, see <http://www.gnu.org/licenses/>. 27 27 */ 28 29 #include "config_public.h" 28 30 29 31 #include "Exception.h" … … 141 143 Matrix(const Matrix&); 142 144 145 #ifdef YAT_HAVE_RVALUE 146 /** 147 \brief The move constructor. 148 */ 149 Matrix(Matrix&&); 150 #endif 151 143 152 /** 144 153 \brief The istream constructor. … … 432 441 */ 433 442 const Matrix& operator=(const Matrix& other); 443 444 #ifdef YAT_HAVE_RVALUE 445 /** 446 \brief Move assignment operator 447 */ 448 Matrix& operator=(Matrix&& other); 449 #endif 434 450 435 451 /**
Note: See TracChangeset
for help on using the changeset viewer.