Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72034 - sandbox/block_ptr/boost
From: phil_at_[hidden]
Date: 2011-05-18 17:37:26


Author: pbouchard
Date: 2011-05-18 17:37:26 EDT (Wed, 18 May 2011)
New Revision: 72034
URL: http://svn.boost.org/trac/boost/changeset/72034

Log:
* Cleaned up redir
Text files modified:
   sandbox/block_ptr/boost/block_ptr.hpp | 10 +++-------
   1 files changed, 3 insertions(+), 7 deletions(-)

Modified: sandbox/block_ptr/boost/block_ptr.hpp
==============================================================================
--- sandbox/block_ptr/boost/block_ptr.hpp (original)
+++ sandbox/block_ptr/boost/block_ptr.hpp 2011-05-18 17:37:26 EDT (Wed, 18 May 2011)
@@ -130,14 +130,10 @@
         
     block_header * redir() const
     {
- block_header * p = redir_;
-
- while (p != p->redir_)
- p = p->redir_;
-
- redir_ = p;
+ while (redir_ != redir_->redir_)
+ redir_ = redir_->redir_;
         
- return p;
+ return redir_;
     }
         
         


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