Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71446 - sandbox/pack_ptr/boost
From: phil_at_[hidden]
Date: 2011-04-23 17:46:02


Author: pbouchard
Date: 2011-04-23 17:46:01 EDT (Sat, 23 Apr 2011)
New Revision: 71446
URL: http://svn.boost.org/trac/boost/changeset/71446

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

Modified: sandbox/pack_ptr/boost/pack_ptr.hpp
==============================================================================
--- sandbox/pack_ptr/boost/pack_ptr.hpp (original)
+++ sandbox/pack_ptr/boost/pack_ptr.hpp 2011-04-23 17:46:01 EDT (Sat, 23 Apr 2011)
@@ -359,10 +359,10 @@
 
         ~pack_ptr()
         {
- release(true);
-
                         if (ps_->destroy_)
                                 base::po_ = 0;
+ else
+ release(true);
         }
 
     private:
@@ -396,8 +396,10 @@
                         ps_ = new pack_header();
                 }
             }
- else if (! d)
+ else
+ {
                 base::reset();
+ }
         }
 
                 


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