Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52696 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2009-05-01 02:50:31


Author: xushiwei
Date: 2009-05-01 02:50:29 EDT (Fri, 01 May 2009)
New Revision: 52696
URL: http://svn.boost.org/trac/boost/changeset/52696

Log:
smart ptr
Text files modified:
   sandbox/memory/boost/memory/block_pool.hpp | 9 +++++----
   1 files changed, 5 insertions(+), 4 deletions(-)

Modified: sandbox/memory/boost/memory/block_pool.hpp
==============================================================================
--- sandbox/memory/boost/memory/block_pool.hpp (original)
+++ sandbox/memory/boost/memory/block_pool.hpp 2009-05-01 02:50:29 EDT (Fri, 01 May 2009)
@@ -43,10 +43,11 @@
         enum { Padding = AllocT::Padding };
 
 public:
- void* BOOST_MEMORY_CALL allocate(size_t cb) { return m_alloc->allocate(cb); }
- void BOOST_MEMORY_CALL deallocate(void* p) { m_alloc->deallocate(p); }
- void BOOST_MEMORY_CALL swap(proxy_alloc& o) { std::swap(m_alloc, o.m_alloc); }
- size_t BOOST_MEMORY_CALL alloc_size(void* p) const { return m_alloc->alloc_size(p); }
+ __forceinline void* BOOST_MEMORY_CALL allocate(size_t cb) { return m_alloc->allocate(cb); }
+ __forceinline void BOOST_MEMORY_CALL deallocate(void* p) { m_alloc->deallocate(p); }
+ __forceinline void BOOST_MEMORY_CALL swap(proxy_alloc& o) { std::swap(m_alloc, o.m_alloc); }
+ __forceinline size_t BOOST_MEMORY_CALL alloc_size(void* p) const { return m_alloc->alloc_size(p); }
+ __forceinline operator AllocT*() const { return m_alloc; }
 };
 
 // -------------------------------------------------------------------------


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