Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49086 - sandbox/shifted_ptr/boost/detail
From: phil_at_[hidden]
Date: 2008-10-01 12:05:15


Author: pbouchard
Date: 2008-10-01 12:05:14 EDT (Wed, 01 Oct 2008)
New Revision: 49086
URL: http://svn.boost.org/trac/boost/changeset/49086

Log:
Removed chunk_size_
Text files modified:
   sandbox/shifted_ptr/boost/detail/sh_owned_base_nt.hpp | 6 ++----
   1 files changed, 2 insertions(+), 4 deletions(-)

Modified: sandbox/shifted_ptr/boost/detail/sh_owned_base_nt.hpp
==============================================================================
--- sandbox/shifted_ptr/boost/detail/sh_owned_base_nt.hpp (original)
+++ sandbox/shifted_ptr/boost/detail/sh_owned_base_nt.hpp 2008-10-01 12:05:14 EDT (Wed, 01 Oct 2008)
@@ -80,9 +80,7 @@
     std::auto_ptr<pool_lii>
 #endif
 {
- static const size_t chunk_size_ = sizeof(int);
-
- pool() : boost::pool<>(chunk_size_)
+ pool() : boost::pool<>(1)
     {
         reset(new pool_lii());
     }
@@ -102,7 +100,7 @@
     
     void * allocate(std::size_t s)
     {
- void * p = ordered_malloc(s / chunk_size_ + 1);
+ void * p = ordered_malloc(s);
         
         get()->push_back(numeric::interval<int>((int) p, int((char *)(p) + s)));
         


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