#1347 Move constructor and move assignment operator for dynamic matrices and vectors
Metadata
Property | Value |
---|---|
Reported by | Christoph Gersbacher (gersbach@mathematik.uni-freiburg.de) |
Reported at | Sep 3, 2013 07:37 |
Type | Bug Report |
Version | 2.2 |
Operating System | Unspecified / All |
Description
Hi,
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).
Attachments
Edited by Santiago Ospina De Los Ríos