|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54042 - sandbox/monotonic/boost/monotonic
From: christian.schladetsch_at_[hidden]
Date: 2009-06-17 20:24:35
Author: cschladetsch
Date: 2009-06-17 20:24:35 EDT (Wed, 17 Jun 2009)
New Revision: 54042
URL: http://svn.boost.org/trac/boost/changeset/54042
Log:
detail::Create now works with any monotonic allocation system
Text files modified:
sandbox/monotonic/boost/monotonic/allocator_base.hpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Modified: sandbox/monotonic/boost/monotonic/allocator_base.hpp
==============================================================================
--- sandbox/monotonic/boost/monotonic/allocator_base.hpp (original)
+++ sandbox/monotonic/boost/monotonic/allocator_base.hpp 2009-06-17 20:24:35 EDT (Wed, 17 Jun 2009)
@@ -54,7 +54,8 @@
template <bool is_monotonic_container, class T>
struct Create
{
- static T Given(storage_base &)
+ template <class Storage>
+ static T Given(Storage &)
{
return T();
}
@@ -62,7 +63,8 @@
template <class T>
struct Create<true, T>
{
- static T Given(storage_base &storage)
+ template <class Storage>
+ static T Given(Storage &storage)
{
return T(storage);
}
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