$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r53214 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2009-05-23 13:16:22
Author: xushiwei
Date: 2009-05-23 13:16:21 EDT (Sat, 23 May 2009)
New Revision: 53214
URL: http://svn.boost.org/trac/boost/changeset/53214
Log:
pools_alloc - NPOOL
Text files modified: 
   sandbox/memory/boost/memory/pools_alloc.hpp |     4 ++--                                    
   1 files changed, 2 insertions(+), 2 deletions(-)
Modified: sandbox/memory/boost/memory/pools_alloc.hpp
==============================================================================
--- sandbox/memory/boost/memory/pools_alloc.hpp	(original)
+++ sandbox/memory/boost/memory/pools_alloc.hpp	2009-05-23 13:16:21 EDT (Sat, 23 May 2009)
@@ -82,7 +82,7 @@
 
 #pragma pack(1)
 
-template <class PolicyT>
+template <class PolicyT, int nPool = 16>
 class pools_alloc
 {
 private:
@@ -103,7 +103,7 @@
 
 private:
         enum { ALIGN_BITS = 3 };
-	enum { NPOOL = 16 };
+	enum { NPOOL = nPool };
         enum { ALIGN = 1 << ALIGN_BITS };
         enum { MIN_BYTES = ALIGN };
         enum { MAX_BYTES = ALIGN * NPOOL };