Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53998 - sandbox/monotonic/boost/monotonic
From: christian.schladetsch_at_[hidden]
Date: 2009-06-17 00:42:17


Author: cschladetsch
Date: 2009-06-17 00:42:14 EDT (Wed, 17 Jun 2009)
New Revision: 53998
URL: http://svn.boost.org/trac/boost/changeset/53998

Log:
removed #pragma once

Text files modified:
   sandbox/monotonic/boost/monotonic/shared_storage.h | 8 ++++++++
   sandbox/monotonic/boost/monotonic/static_storage.h | 19 +++++++------------
   2 files changed, 15 insertions(+), 12 deletions(-)

Modified: sandbox/monotonic/boost/monotonic/shared_storage.h
==============================================================================
--- sandbox/monotonic/boost/monotonic/shared_storage.h (original)
+++ sandbox/monotonic/boost/monotonic/shared_storage.h 2009-06-17 00:42:14 EDT (Wed, 17 Jun 2009)
@@ -7,6 +7,7 @@
 #define BOOST_MONOTONIC_SHARED_STORAGE_H
 
 #include <boost/monotonic/storage.h>
+#include <boost/monotonic/static_storage.h>
 #include <boost/thread/mutex.hpp>
 
 namespace boost
@@ -69,6 +70,13 @@
 
                 };
 
+ extern static_storage_base<
+ DefaultSizes::StaticInlineSize
+ , DefaultSizes::StaticMinHeapIncrement
+ , std::allocator<char>
+ , shared_storage>
+ static_shared_storage;
+
         } // namespace monotonic
 
 } // namespace boost

Modified: sandbox/monotonic/boost/monotonic/static_storage.h
==============================================================================
--- sandbox/monotonic/boost/monotonic/static_storage.h (original)
+++ sandbox/monotonic/boost/monotonic/static_storage.h 2009-06-17 00:42:14 EDT (Wed, 17 Jun 2009)
@@ -3,10 +3,10 @@
 // Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
-#pragma once
+#ifndef BOOST_MONOTONIC_STATIC_STORAGE_BASE_H
+#define BOOST_MONOTONIC_STATIC_STORAGE_BASE_H
 
 #include <boost/monotonic/storage.h>
-//#include <boost/monotonic/shared_storage.h>
 
 namespace boost
 {
@@ -58,15 +58,10 @@
                 /// 'static_storage' will be used by a default-constructed monotonic::allocator
                 extern static_storage_base<> static_storage;
 
- /*
- extern static_storage_base<
- DefaultSizes::StaticInlineSize
- , DefaultSizes::StaticMinHeapIncrement
- , std::allocator<char>
- , shared_storage>
- static_shared_storage;
- */
- }
-}
+ } // namespace monotonic
+
+} // namespace boost
+
+#endif // BOOST_MONOTONIC_STATIC_STORAGE_BASE_H
 
 //EOF


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