Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54478 - sandbox/monotonic/boost/ptr_container/detail
From: christian.schladetsch_at_[hidden]
Date: 2009-06-28 18:01:58


Author: cschladetsch
Date: 2009-06-28 18:01:57 EDT (Sun, 28 Jun 2009)
New Revision: 54478
URL: http://svn.boost.org/trac/boost/changeset/54478

Log:
pass by ref for null_policy_deallocate_clone

Text files modified:
   sandbox/monotonic/boost/ptr_container/detail/reversible_ptr_container.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: sandbox/monotonic/boost/ptr_container/detail/reversible_ptr_container.hpp
==============================================================================
--- sandbox/monotonic/boost/ptr_container/detail/reversible_ptr_container.hpp (original)
+++ sandbox/monotonic/boost/ptr_container/detail/reversible_ptr_container.hpp 2009-06-28 18:01:57 EDT (Sun, 28 Jun 2009)
@@ -292,12 +292,14 @@
 
         static Ty_* null_policy_allocate_clone( const Ty_* x )
         {
- return null_cloner_type::allocate_clone( x, allocator_type() );
+ allocator_type alloc;
+ return null_cloner_type::allocate_clone( x, alloc);
         }
 
         static void null_policy_deallocate_clone( const Ty_* x )
         {
- null_cloner_type::deallocate_clone( x, allocator_type() );
+ allocator_type alloc;
+ null_cloner_type::deallocate_clone( x, alloc );
         }
 
     private:


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