Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72008 - sandbox/block_ptr/boost
From: phil_at_[hidden]
Date: 2011-05-16 20:01:34


Author: pbouchard
Date: 2011-05-16 20:01:34 EDT (Mon, 16 May 2011)
New Revision: 72008
URL: http://svn.boost.org/trac/boost/changeset/72008

Log:
* Made reset with raw pointer hidden
Text files modified:
   sandbox/block_ptr/boost/block_ptr.hpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 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-16 20:01:34 EDT (Mon, 16 May 2011)
@@ -289,6 +289,12 @@
 
                 return * this;
             }
+
+ template <typename V>
+ void reset(block<V> * p)
+ {
+ operator = <T>(p);
+ }
             
                 template <typename V>
                         friend block_ptr<V> make_block();
@@ -398,12 +404,6 @@
                 {
                     operator = <T>(p);
                 }
-
- template <typename V>
- void reset(block<V> * p)
- {
- operator = <T>(p);
- }
         
         bool cyclic() const
         {


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