From e1ae97ee2d157120d1f94899c268910a96eff7a8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 17 Jun 2017 18:55:13 -0600 Subject: [PATCH] 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. --- include/deal.II/dofs/dof_handler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5