Boost logo

Boost-Commit :

From: xushiweizh_at_[hidden]
Date: 2008-05-20 18:21:32


Author: xushiwei
Date: 2008-05-20 18:21:32 EDT (Tue, 20 May 2008)
New Revision: 45591
URL: http://svn.boost.org/trac/boost/changeset/45591

Log:
boost::memory::policy::stdlib
Text files modified:
   sandbox/memory/boost/memory/auto_alloc.hpp | 2 +-
   sandbox/memory/boost/memory/policy.hpp | 6 ++++++
   2 files changed, 7 insertions(+), 1 deletions(-)

Modified: sandbox/memory/boost/memory/auto_alloc.hpp
==============================================================================
--- sandbox/memory/boost/memory/auto_alloc.hpp (original)
+++ sandbox/memory/boost/memory/auto_alloc.hpp 2008-05-20 18:21:32 EDT (Tue, 20 May 2008)
@@ -244,7 +244,7 @@
 // -------------------------------------------------------------------------
 // class auto_alloc
 
-typedef region_alloc<NS_BOOST_MEMORY_POLICY::sys> auto_alloc;
+typedef region_alloc<NS_BOOST_MEMORY_POLICY::stdlib> auto_alloc;
 
 // -------------------------------------------------------------------------
 // $Log: auto_alloc.hpp,v $

Modified: sandbox/memory/boost/memory/policy.hpp
==============================================================================
--- sandbox/memory/boost/memory/policy.hpp (original)
+++ sandbox/memory/boost/memory/policy.hpp 2008-05-20 18:21:32 EDT (Tue, 20 May 2008)
@@ -143,6 +143,12 @@
         typedef simple_gc_alloc<system_alloc> huge_gc_allocator;
 };
 
+class stdlib : public sys
+{
+public:
+ typedef stdlib_alloc allocator_type;
+};
+
 NS_BOOST_MEMORY_POLICY_END
 
 // -------------------------------------------------------------------------


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