From: wolf Date: Tue, 4 Mar 2003 19:39:30 +0000 (+0000) Subject: Add a non-template assignment operator. This allows us to use -Wsynth with gcc. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a52d3be0e7151513c78db4b75c9e4a557c669ff8;p=dealii-svn.git 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 --- 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 {