|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54171 - in sandbox/monotonic/boost/monotonic: . detail
From: christian.schladetsch_at_[hidden]
Date: 2009-06-21 23:31:29
Author: cschladetsch
Date: 2009-06-21 23:31:29 EDT (Sun, 21 Jun 2009)
New Revision: 54171
URL: http://svn.boost.org/trac/boost/changeset/54171
Log:
Pool is no longer a template
Text files modified:
sandbox/monotonic/boost/monotonic/detail/pool.hpp | 3 ++-
sandbox/monotonic/boost/monotonic/storage.hpp | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
Modified: sandbox/monotonic/boost/monotonic/detail/pool.hpp
==============================================================================
--- sandbox/monotonic/boost/monotonic/detail/pool.hpp (original)
+++ sandbox/monotonic/boost/monotonic/detail/pool.hpp 2009-06-21 23:31:29 EDT (Sun, 21 Jun 2009)
@@ -13,7 +13,6 @@
namespace detail
{
/// a pool of same-sized chunks in a storage block of the given type
- template <class Storage>
struct Pool
{
char *first, *next, *last;
@@ -24,6 +23,7 @@
Pool(size_t bs) : first(0), next(0), last(0), bucket_size(bs)
{
}
+ template <class Storage>
void *allocate(Storage *storage)
{
if (next == last)
@@ -32,6 +32,7 @@
next += bucket_size;
return ptr;
}
+ template <class Storage>
void expand(Storage *storage)
{
size_t capacity = std::max(DefaultSizes::MinPoolSize*bucket_size, (last - first)*bucket_size*2);
Modified: sandbox/monotonic/boost/monotonic/storage.hpp
==============================================================================
--- sandbox/monotonic/boost/monotonic/storage.hpp (original)
+++ sandbox/monotonic/boost/monotonic/storage.hpp 2009-06-21 23:31:29 EDT (Sun, 21 Jun 2009)
@@ -32,7 +32,7 @@
typedef Al Allocator;
typedef typename Allocator::template rebind<char>::other CharAllocator;
typedef detail::Link<CharAllocator> Link;
- typedef detail::Pool<This> Pool;
+ typedef detail::Pool Pool;
typedef std::vector<Link> Chain;
typedef boost::array<Pool, NumPools> Pools;
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