Boost logo

Boost-Commit :

From: xushiweizh_at_[hidden]
Date: 2008-07-24 09:58:13


Author: xushiwei
Date: 2008-07-24 09:58:12 EDT (Thu, 24 Jul 2008)
New Revision: 47755
URL: http://svn.boost.org/trac/boost/changeset/47755

Log:
t
Text files modified:
   sandbox/memory/boost/memory.hpp | 13 +++++++------
   1 files changed, 7 insertions(+), 6 deletions(-)

Modified: sandbox/memory/boost/memory.hpp
==============================================================================
--- sandbox/memory/boost/memory.hpp (original)
+++ sandbox/memory/boost/memory.hpp 2008-07-24 09:58:12 EDT (Thu, 24 Jul 2008)
@@ -78,11 +78,12 @@
         private ContainerT::alloc_type,
         public ContainerT
 {
-public:
- typedef typename ContainerT::alloc_type alloc_type;
+private:
+ typedef ContainerT::alloc_type AllocT;
 
- alloc_type& BOOST_MEMORY_CALL get_alloc() {
- return *static_cast<alloc_type*>(this);
+public:
+ AllocT& BOOST_MEMORY_CALL get_alloc() {
+ return *static_cast<AllocT*>(this);
         }
 
         void BOOST_MEMORY_CALL swap(defragment& o) {
@@ -91,8 +92,8 @@
 
         void BOOST_MEMORY_CALL defrag()
         {
- alloc_type alloc2;
- alloc_type::swap(alloc2);
+ AllocT alloc2;
+ AllocT::swap(alloc2);
                 
                 ContainerT data2(get_alloc());
                 data2.copy(*static_cast<const ContainerT*>(this));


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