]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use std::unique_ptr instead of std::shared_ptr for DoFHandler::policy.
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 18 Jun 2017 00:55:13 +0000 (18:55 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 19 Jun 2017 03:48:47 +0000 (21:48 -0600)
This is possible because DoFHandler has no copy constructor or operator, and consequently
there is no reason to share a policy.

include/deal.II/dofs/dof_handler.h

index eb298faae6a37d4c7d16c79868ab7ea79df9ede9..2d8953dddf7719167bafb50ce9942c10d29aa934 100644 (file)
@@ -933,7 +933,7 @@ private:
    * An object that describes how degrees of freedom should be distributed and
    * renumbered.
    */
-  std::shared_ptr<dealii::internal::DoFHandler::Policy::PolicyBase<dim,spacedim> > policy;
+  std::unique_ptr<dealii::internal::DoFHandler::Policy::PolicyBase<dim,spacedim> > policy;
 
   /**
    * A structure that contains all sorts of numbers that characterize the

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.