Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59032 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2010-01-15 07:00:21


Author: xushiwei
Date: 2010-01-15 07:00:21 EST (Fri, 15 Jan 2010)
New Revision: 59032
URL: http://svn.boost.org/trac/boost/changeset/59032

Log:
BOOST_MEMORY_PREALLOC=0
Text files modified:
   sandbox/memory/boost/memory/pools.hpp | 2 +-
   sandbox/memory/boost/memory/region_alloc.hpp | 6 +++++-
   2 files changed, 6 insertions(+), 2 deletions(-)

Modified: sandbox/memory/boost/memory/pools.hpp
==============================================================================
--- sandbox/memory/boost/memory/pools.hpp (original)
+++ sandbox/memory/boost/memory/pools.hpp 2010-01-15 07:00:21 EST (Fri, 15 Jan 2010)
@@ -86,7 +86,7 @@
 // -------------------------------------------------------------------------
 // class pools, scoped_pools
 
-template <class PolicyT, int m_fPreAlloc = 1>
+template <class PolicyT, int m_fPreAlloc = BOOST_MEMORY_PREALLOC>
 class pools_alloc
 {
 private:

Modified: sandbox/memory/boost/memory/region_alloc.hpp
==============================================================================
--- sandbox/memory/boost/memory/region_alloc.hpp (original)
+++ sandbox/memory/boost/memory/region_alloc.hpp 2010-01-15 07:00:21 EST (Fri, 15 Jan 2010)
@@ -21,9 +21,13 @@
 // -------------------------------------------------------------------------
 // class region_alloc
 
+#ifndef BOOST_MEMORY_PREALLOC
+#define BOOST_MEMORY_PREALLOC 0
+#endif
+
 #pragma pack(1)
 
-template <class PolicyT, int m_fPreAlloc = 1>
+template <class PolicyT, int m_fPreAlloc = BOOST_MEMORY_PREALLOC>
 class region_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