|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54238 - sandbox/monotonic/boost/monotonic
From: christian.schladetsch_at_[hidden]
Date: 2009-06-22 18:45:31
Author: cschladetsch
Date: 2009-06-22 18:45:31 EDT (Mon, 22 Jun 2009)
New Revision: 54238
URL: http://svn.boost.org/trac/boost/changeset/54238
Log:
added monotonic::region_allocator<T, Region>
Text files modified:
sandbox/monotonic/boost/monotonic/local.hpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Modified: sandbox/monotonic/boost/monotonic/local.hpp
==============================================================================
--- sandbox/monotonic/boost/monotonic/local.hpp (original)
+++ sandbox/monotonic/boost/monotonic/local.hpp 2009-06-22 18:45:31 EDT (Mon, 22 Jun 2009)
@@ -15,6 +15,8 @@
storage_base *set_storage(storage_base &new_storage);
void default_storage();
+ /// sets the global storage on construction, releases and returns to previous
+ /// storage on destruction
template <class Storage>
struct local : storage_base
{
@@ -30,6 +32,7 @@
}
~local()
{
+ release();
if (old)
set_storage(*old);
else
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