From: Bruno Turcksin Date: Wed, 19 Apr 2017 12:43:42 +0000 (-0400) Subject: Merge pull request #4277 from bangerth/use-unique-ptr X-Git-Tag: v9.0.0-rc1~1670 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=260b3e7de19e2d5ac78bbd172f5ed04fe1be1d92;p=dealii.git Merge pull request #4277 from bangerth/use-unique-ptr Use std::unique_ptr instead of std::shared_ptr in FESystem. --- 260b3e7de19e2d5ac78bbd172f5ed04fe1be1d92 diff --cc include/deal.II/fe/fe_system.h index 20b7cb3c33,c8a3e6b9fa..9e1870529b --- a/include/deal.II/fe/fe_system.h +++ b/include/deal.II/fe/fe_system.h @@@ -966,8 -962,15 +968,8 @@@ private * This object contains a pointer to each contributing element of a mixed * discretization and its multiplicity. It is created by the constructor and * constant afterwards. - * - * The pointers are managed as shared pointers. This ensures that we can use - * the copy constructor of this class without having to manage cloning the - * elements themselves. Since finite element objects do not contain any - * state, this also allows multiple copies of an FESystem object to share - * pointers to the underlying base finite elements. The last one of these - * copies around will then delete the pointer to the base elements. */ - std::vector >, + std::vector >, unsigned int> > base_elements;