#1347 Move constructor and move assignment operator for dynamic matrices and vectors
|Reported by||Christoph Gersbacher (firstname.lastname@example.org)|
|Reported at||Sep 3, 2013 07:37|
|Operating System||Unspecified / All|
the dense Dune::DynamicVector and Dune::DynamicMatrix are built on std::vector. They would thus heavily benefit from the new move semantics. We already have a HAVE_RVALUE_REFERENCES preprocessor macro which is used e.g., in dune/common/mallocallocator.hh.
The patch attached adds move constructors and move assignment operators to these classes inside #if HAVE_RVALUE_REFERENCES. I added the usual assignment operators as well (assignment has been implemented through the DenseMatrix/Vector interfaces up to now).