Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52597 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2009-04-25 23:40:32


Author: xushiwei
Date: 2009-04-25 23:40:31 EDT (Sat, 25 Apr 2009)
New Revision: 52597
URL: http://svn.boost.org/trac/boost/changeset/52597

Log:
friend struct MemBlock;
Text files modified:
   sandbox/memory/boost/memory/fixed_alloc.hpp | 2 ++
   sandbox/memory/boost/memory/region_alloc.hpp | 3 +++
   2 files changed, 5 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-04-25 23:40:31 EDT (Sat, 25 Apr 2009)
@@ -52,6 +52,8 @@
 #pragma pack(1)
 private:
         struct MemBlock;
+ friend struct MemBlock;
+
         struct Header : public dcl_list_node<MemBlock>
         {
                 size_t nUsed;

Modified: sandbox/memory/boost/memory/region_alloc.hpp
==============================================================================
--- sandbox/memory/boost/memory/region_alloc.hpp (original)
+++ sandbox/memory/boost/memory/region_alloc.hpp 2009-04-25 23:40:31 EDT (Sat, 25 Apr 2009)
@@ -37,6 +37,9 @@
 
 #pragma pack(1)
 private:
+ struct MemBlock;
+ friend struct MemBlock;
+
         enum { HeaderSize = sizeof(void*) };
         enum { BlockSize = MemBlockSize - HeaderSize };
 


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