]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a non-template assignment operator. This allows us to use -Wsynth with gcc.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Mar 2003 19:39:30 +0000 (19:39 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Mar 2003 19:39:30 +0000 (19:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@7267 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/boost/include/boost_local/shared_ptr.hpp

index e54b2e0fb651beae4ac9be102000ae83f39ca6df..81c6f54e5f51b7b5ae77162c50b7cc892770e8d2 100644 (file)
@@ -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<typename Y>
     shared_ptr & operator=(shared_ptr<Y> const & r) // never throws
     {

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.