From: Wolfgang Bangerth Date: Sun, 18 Jun 2017 00:55:13 +0000 (-0600) Subject: Use std::unique_ptr instead of std::shared_ptr for DoFHandler::policy. X-Git-Tag: v9.0.0-rc1~1487^2~14 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1ae97ee2d157120d1f94899c268910a96eff7a8;p=dealii.git Use std::unique_ptr instead of std::shared_ptr for DoFHandler::policy. This is possible because DoFHandler has no copy constructor or operator, and consequently there is no reason to share a policy. --- diff --git a/include/deal.II/dofs/dof_handler.h b/include/deal.II/dofs/dof_handler.h index eb298faae6..2d8953dddf 100644 --- a/include/deal.II/dofs/dof_handler.h +++ b/include/deal.II/dofs/dof_handler.h @@ -933,7 +933,7 @@ private: * An object that describes how degrees of freedom should be distributed and * renumbered. */ - std::shared_ptr > policy; + std::unique_ptr > policy; /** * A structure that contains all sorts of numbers that characterize the