|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56056 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2009-09-06 05:26:42
Author: xushiwei
Date: 2009-09-06 05:26:41 EDT (Sun, 06 Sep 2009)
New Revision: 56056
URL: http://svn.boost.org/trac/boost/changeset/56056
Log:
fixed_alloc::allocate(size_t cb);
Text files modified:
sandbox/memory/boost/memory/fixed_alloc.hpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: sandbox/memory/boost/memory/fixed_alloc.hpp
==============================================================================
--- sandbox/memory/boost/memory/fixed_alloc.hpp (original)
+++ sandbox/memory/boost/memory/fixed_alloc.hpp 2009-09-06 05:26:41 EDT (Sun, 06 Sep 2009)
@@ -195,6 +195,12 @@
return p;
}
+ __forceinline void* BOOST_MEMORY_CALL allocate(size_t cb)
+ {
+ BOOST_MEMORY_ASSERT(cb == element_size());
+ return allocate();
+ }
+
__forceinline void BOOST_MEMORY_CALL deallocate(void* const p)
{
MemBlock* const blk = chunkHeader_(p);
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