Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80810 - sandbox/pool2/boost/pool
From: svart.riddare_at_[hidden]
Date: 2012-10-01 14:27:08


Author: edupuis
Date: 2012-10-01 14:27:07 EDT (Mon, 01 Oct 2012)
New Revision: 80810
URL: http://svn.boost.org/trac/boost/changeset/80810

Log:
Forgot allocator in constructor.
Text files modified:
   sandbox/pool2/boost/pool/pool.hpp | 8 +++++---
   1 files changed, 5 insertions(+), 3 deletions(-)

Modified: sandbox/pool2/boost/pool/pool.hpp
==============================================================================
--- sandbox/pool2/boost/pool/pool.hpp (original)
+++ sandbox/pool2/boost/pool/pool.hpp 2012-10-01 14:27:07 EDT (Mon, 01 Oct 2012)
@@ -215,8 +215,10 @@
                  * \param policy
                  * Pool growth policy. See documentation of pools::policy for details
                  * on how the policy controls the pool growth.
+ * \param allocator
+ * Custom allocator instance.
                  * ---------------------------------------------------------------------- */
- pool(size_t initialPoolSize, size_t bufferSize = 1, pools::policy policy = pools::policy_no_growth);
+ pool(size_t initialPoolSize, size_t bufferSize = 1, pools::policy policy = pools::policy_no_growth, const Allocator& allocator = Allocator());
 
                 /** ------------------------------------------------------------------------
                  * Destroys a pool.
@@ -355,8 +357,8 @@
 /* -------------------------------------------------------------------------- */
 
 template<typename T, bool ThreadSafe, class Allocator>
-pool<T, ThreadSafe, Allocator>::pool(size_t initialPoolSize, size_t bufferSize, pools::policy policy)
- : _policy(policy), _allocated(0), _requested(0), _size(bufferSize)
+pool<T, ThreadSafe, Allocator>::pool(size_t initialPoolSize, size_t bufferSize, pools::policy policy, const Allocator& allocator)
+ : _allocator(allocator), _policy(policy), _allocated(0), _requested(0), _size(bufferSize)
 {
         grow(initialPoolSize);
 }


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