Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53974 - sandbox/monotonic/boost/monotonic
From: christian.schladetsch_at_[hidden]
Date: 2009-06-16 04:25:51


Author: cschladetsch
Date: 2009-06-16 04:25:49 EDT (Tue, 16 Jun 2009)
New Revision: 53974
URL: http://svn.boost.org/trac/boost/changeset/53974

Log:
fix for allocator::max_size

Text files modified:
   sandbox/monotonic/boost/monotonic/allocator.h | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/monotonic/boost/monotonic/allocator.h
==============================================================================
--- sandbox/monotonic/boost/monotonic/allocator.h (original)
+++ sandbox/monotonic/boost/monotonic/allocator.h 2009-06-16 04:25:49 EDT (Tue, 16 Jun 2009)
@@ -115,7 +115,7 @@
                         {
                                 if (!storage)
                                         return 0;
- return storage->max_size();
+ return storage->max_size()/(sizeof(T) + alignment);
                         }
 
                         void construct(pointer p)


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