]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix: Correctly set up object in move constructor
authorMatthias Maier <tamiko@43-1.org>
Mon, 4 May 2015 07:29:37 +0000 (09:29 +0200)
committerMatthias Maier <tamiko@43-1.org>
Mon, 4 May 2015 11:46:24 +0000 (13:46 +0200)
include/deal.II/lac/block_vector.templates.h

index 5ec9b8ad16cac0a36f04864603f7084d20224b2c..abdb94e7e067df185d9339f5f91b354c7abffb37 100644 (file)
@@ -64,10 +64,10 @@ BlockVector<Number>::BlockVector (const BlockVector<Number> &v)
 #ifdef DEAL_II_WITH_CXX11
 template <typename Number>
 BlockVector<Number>::BlockVector (BlockVector<Number> &&v)
+  :
+  BlockVectorBase<Vector<Number> > ()
 {
   swap(v);
-  // be nice and reset v to zero
-  v.reinit(0, 0, false);
 }
 #endif
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.