|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53701 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2009-06-06 23:28:25
Author: xushiwei
Date: 2009-06-06 23:28:25 EDT (Sat, 06 Jun 2009)
New Revision: 53701
URL: http://svn.boost.org/trac/boost/changeset/53701
Log:
proxy_alloc::instance
Text files modified:
sandbox/memory/boost/memory/block_pool.hpp | 3 ++-
1 files changed, 2 insertions(+), 1 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-06-06 23:28:25 EDT (Sat, 06 Jun 2009)
@@ -50,8 +50,9 @@
__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_type BOOST_MEMORY_CALL alloc_size(void* p) const { return m_alloc->alloc_size(p); }
+ __forceinline AllocT& BOOST_MEMORY_CALL instance() const { return *m_alloc; }
+ __forceinline AllocT* BOOST_MEMORY_CALL operator&() const { return m_alloc; }
__forceinline operator AllocT&() const { return *m_alloc; }
- __forceinline AllocT* operator&() const { return m_alloc; }
};
#pragma pack()
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