Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71387 - sandbox/shifted_ptr/boost
From: phil_at_[hidden]
Date: 2011-04-19 21:12:12


Author: pbouchard
Date: 2011-04-19 21:12:12 EDT (Tue, 19 Apr 2011)
New Revision: 71387
URL: http://svn.boost.org/trac/boost/changeset/71387

Log:
* Code cleanup
Text files modified:
   sandbox/shifted_ptr/boost/shifted_ptr.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/shifted_ptr/boost/shifted_ptr.hpp
==============================================================================
--- sandbox/shifted_ptr/boost/shifted_ptr.hpp (original)
+++ sandbox/shifted_ptr/boost/shifted_ptr.hpp 2011-04-19 21:12:12 EDT (Tue, 19 Apr 2011)
@@ -293,7 +293,7 @@
                     ps_ = new set();
                 else
                     owned_base::pool_.top(this)->ptrs_.push(& pn_);
-
+
                 ps_->redir(p.ps_);
             }
 
@@ -307,8 +307,7 @@
         template <typename V>
             shifted_ptr & operator = (shifted<V> * p)
             {
- if (! owned_base::pool_.is_from(this))
- release(false);
+ release(false);
 
                 init(p);
 
@@ -330,6 +329,7 @@
                 if (ps_->redir() != p.ps_->redir())
                 {
                     release(false);
+
                     ps_->redir(p.ps_);
                 }
                 base::operator = (p);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk