Boost logo

Boost-Commit :

From: phil_at_[hidden]
Date: 2008-07-03 03:10:16


Author: pbouchard
Date: 2008-07-03 03:10:15 EDT (Thu, 03 Jul 2008)
New Revision: 47031
URL: http://svn.boost.org/trac/boost/changeset/47031

Log:
Fixed allocator for what std should be.
Text files modified:
   sandbox/shifted_ptr/boost/shifted_allocator.hpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: sandbox/shifted_ptr/boost/shifted_allocator.hpp
==============================================================================
--- sandbox/shifted_ptr/boost/shifted_allocator.hpp (original)
+++ sandbox/shifted_ptr/boost/shifted_allocator.hpp 2008-07-03 03:10:15 EDT (Thu, 03 Jul 2008)
@@ -40,11 +40,11 @@
     public:
         typedef size_t size_type;
         typedef ptrdiff_t difference_type;
- typedef shifted<T> * pointer;
- typedef const shifted<T> * const_pointer;
- typedef shifted<T> & reference;
- typedef const shifted<T> & const_reference;
- typedef shifted<T> value_type;
+ typedef shifted_ptr<T> pointer;
+ typedef const shifted_ptr<T> const_pointer;
+ typedef T & reference;
+ typedef const T & const_reference;
+ typedef T value_type;
 
         template <typename U>
             struct rebind
@@ -68,7 +68,7 @@
 
         void deallocate(pointer p, size_type)
         {
- shifted<T>::operator delete(p);
+ p.reset();
         }
 
         //! FIXME


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