From 04ae11bdbbdb032aff6174689623aafad657b34c Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 15 Dec 2017 11:37:26 -0500 Subject: [PATCH] Add a move constructor for VectorMemory::Pointer. This lets us write things like std::vector::Pointer> vec; --- include/deal.II/lac/vector_memory.h | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- 2.39.5