From a52d3be0e7151513c78db4b75c9e4a557c669ff8 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 4 Mar 2003 19:39:30 +0000 Subject: [PATCH] Add a non-template assignment operator. This allows us to use -Wsynth with gcc. git-svn-id: https://svn.dealii.org/trunk@7267 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/contrib/boost/include/boost_local/shared_ptr.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deal.II/contrib/boost/include/boost_local/shared_ptr.hpp b/deal.II/contrib/boost/include/boost_local/shared_ptr.hpp index e54b2e0fb6..81c6f54e5f 100644 --- a/deal.II/contrib/boost/include/boost_local/shared_ptr.hpp +++ b/deal.II/contrib/boost/include/boost_local/shared_ptr.hpp @@ -162,6 +162,13 @@ public: #if !defined(BOOST_MSVC) || (BOOST_MSVC > 1200) + shared_ptr & operator=(shared_ptr const & r) // never throws + { + px = r.px; + pn = r.pn; // shared_count::op= doesn't throw + return *this; + } + template shared_ptr & operator=(shared_ptr const & r) // never throws { -- 2.39.5