From: David Wells Date: Fri, 15 Dec 2017 16:37:26 +0000 (-0500) Subject: Add a move constructor for VectorMemory::Pointer. X-Git-Tag: v9.0.0-rc1~655^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04ae11bdbbdb032aff6174689623aafad657b34c;p=dealii.git Add a move constructor for VectorMemory::Pointer. This lets us write things like std::vector::Pointer> vec; --- diff --git a/include/deal.II/lac/vector_memory.h b/include/deal.II/lac/vector_memory.h index 626fa82faf..1afe9e3564 100644 --- a/include/deal.II/lac/vector_memory.h +++ b/include/deal.II/lac/vector_memory.h @@ -196,6 +196,12 @@ public: */ Pointer() = default; + /** + * Move constructor. This operator steals the pointer to the vector + * represented by this object from the one give as argument. + */ + Pointer(Pointer &&) = default; + /** * Move operator. This operator steals the pointer to the vector * represented by this object from the one give as argument.