Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57722 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2009-11-17 06:43:21


Author: xushiwei
Date: 2009-11-17 06:43:21 EST (Tue, 17 Nov 2009)
New Revision: 57722
URL: http://svn.boost.org/trac/boost/changeset/57722

Log:
size_type
Text files modified:
   sandbox/memory/boost/memory/region_alloc.hpp | 3 ++-
   sandbox/memory/boost/memory/system_alloc.hpp | 2 ++
   2 files changed, 4 insertions(+), 1 deletions(-)

Modified: sandbox/memory/boost/memory/region_alloc.hpp
==============================================================================
--- sandbox/memory/boost/memory/region_alloc.hpp (original)
+++ sandbox/memory/boost/memory/region_alloc.hpp 2009-11-17 06:43:21 EST (Tue, 17 Nov 2009)
@@ -35,6 +35,7 @@
 public:
         enum { MemBlockSize = PolicyT::MemBlockBytes - AllocT::Padding };
 
+ typedef size_t size_type;
         typedef AllocT alloc_type;
 
 private:
@@ -86,7 +87,7 @@
         {
                 init_();
         }
- explicit region_alloc(AllocT alloc) : m_alloc(alloc), m_destroyChain(NULL)
+ explicit region_alloc(alloc_type alloc) : m_alloc(alloc), m_destroyChain(NULL)
         {
                 init_();
         }

Modified: sandbox/memory/boost/memory/system_alloc.hpp
==============================================================================
--- sandbox/memory/boost/memory/system_alloc.hpp (original)
+++ sandbox/memory/boost/memory/system_alloc.hpp 2009-11-17 06:43:21 EST (Tue, 17 Nov 2009)
@@ -35,6 +35,8 @@
 {
 public:
         enum { Padding = 16 /* must >= sizeof(AllocateHeader) */ };
+
+ typedef size_t size_type;
 
         static void* BOOST_MEMORY_CALL allocate(size_t cb) {
                 return malloc(cb);


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