From: Matthias Maier Date: Mon, 4 May 2015 07:29:37 +0000 (+0200) Subject: Bugfix: Correctly set up object in move constructor X-Git-Tag: v8.3.0-rc1~202^2~9 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c9cd0929515305b9b79167bd9f5fb8d73bc00dc;p=dealii.git Bugfix: Correctly set up object in move constructor --- diff --git a/include/deal.II/lac/block_vector.templates.h b/include/deal.II/lac/block_vector.templates.h index 5ec9b8ad16..abdb94e7e0 100644 --- a/include/deal.II/lac/block_vector.templates.h +++ b/include/deal.II/lac/block_vector.templates.h @@ -64,10 +64,10 @@ BlockVector::BlockVector (const BlockVector &v) #ifdef DEAL_II_WITH_CXX11 template BlockVector::BlockVector (BlockVector &&v) + : + BlockVectorBase > () { swap(v); - // be nice and reset v to zero - v.reinit(0, 0, false); } #endif