|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54243 - sandbox/monotonic/boost/monotonic
From: christian.schladetsch_at_[hidden]
Date: 2009-06-22 19:23:31
Author: cschladetsch
Date: 2009-06-22 19:23:31 EDT (Mon, 22 Jun 2009)
New Revision: 54243
URL: http://svn.boost.org/trac/boost/changeset/54243
Log:
removed redundant decls
Text files modified:
sandbox/monotonic/boost/monotonic/local.hpp | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
Modified: sandbox/monotonic/boost/monotonic/local.hpp
==============================================================================
--- sandbox/monotonic/boost/monotonic/local.hpp (original)
+++ sandbox/monotonic/boost/monotonic/local.hpp 2009-06-22 19:23:31 EDT (Mon, 22 Jun 2009)
@@ -12,15 +12,11 @@
{
namespace monotonic
{
- 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
{
-
private:
Storage store;
storage_base *old;
@@ -39,6 +35,14 @@
default_storage();
}
+ Storage &get_storage()
+ {
+ return store;
+ }
+ Storage const &get_storage() const
+ {
+ return store;
+ }
void reset()
{
store.reset();
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