$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r54181 - in sandbox/monotonic: boost/monotonic libs/monotonic/test
From: christian.schladetsch_at_[hidden]
Date: 2009-06-22 02:03:27
Author: cschladetsch
Date: 2009-06-22 02:03:26 EDT (Mon, 22 Jun 2009)
New Revision: 54181
URL: http://svn.boost.org/trac/boost/changeset/54181
Log:
changed mini-stack to use references
Text files modified: 
   sandbox/monotonic/boost/monotonic/storage.hpp                 |     6 ++++++                                  
   sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp |     2 +-                                      
   2 files changed, 7 insertions(+), 1 deletions(-)
Modified: sandbox/monotonic/boost/monotonic/storage.hpp
==============================================================================
--- sandbox/monotonic/boost/monotonic/storage.hpp	(original)
+++ sandbox/monotonic/boost/monotonic/storage.hpp	2009-06-22 02:03:26 EDT (Mon, 22 Jun 2009)
@@ -199,6 +199,12 @@
                                 object.~Ty();
                         }
 
+			template <class Ty>
+			void destroy(Ty const &object)
+			{
+				destroy(const_cast<Ty &>(object));
+			}
+
                         template <size_t N>
                         char *allocate_bytes()
                         {
Modified: sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp	(original)
+++ sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp	2009-06-22 02:03:26 EDT (Mon, 22 Jun 2009)
@@ -448,7 +448,7 @@
                         int &n0 = storage.create<int>();
 
                         // create a new string (uses correct alignment)
-			string &s1 = storage.create<string>("foo");
+			string const &s1 = storage.create<string>("foo");
                         BOOST_ASSERT(s1 == "foo");
 
                         // allocate 37 bytes with alignment 1