|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53975 - sandbox/monotonic/boost/monotonic
From: christian.schladetsch_at_[hidden]
Date: 2009-06-16 04:26:48
Author: cschladetsch
Date: 2009-06-16 04:26:47 EDT (Tue, 16 Jun 2009)
New Revision: 53975
URL: http://svn.boost.org/trac/boost/changeset/53975
Log:
fix for allocator::max_size
Text files modified:
sandbox/monotonic/boost/monotonic/allocator.h | 3 ++-
1 files changed, 2 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:26:47 EDT (Tue, 16 Jun 2009)
@@ -115,7 +115,8 @@
{
if (!storage)
return 0;
- return storage->max_size()/(sizeof(T) + alignment);
+ //return storage->max_size()/(sizeof(T) + alignment);
+ return storage->max_size()/sizeof(T);
}
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