Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57273 - branches/release/boost/ptr_container
From: nesotto_at_[hidden]
Date: 2009-11-01 06:07:13


Author: nesotto
Date: 2009-11-01 06:07:12 EST (Sun, 01 Nov 2009)
New Revision: 57273
URL: http://svn.boost.org/trac/boost/changeset/57273

Log:
fix for uninitialized PODs in resize
Text files modified:
   branches/release/boost/ptr_container/ptr_circular_buffer.hpp | 4 ++--
   branches/release/boost/ptr_container/ptr_sequence_adapter.hpp | 4 ++--
   2 files changed, 4 insertions(+), 4 deletions(-)

Modified: branches/release/boost/ptr_container/ptr_circular_buffer.hpp
==============================================================================
--- branches/release/boost/ptr_container/ptr_circular_buffer.hpp (original)
+++ branches/release/boost/ptr_container/ptr_circular_buffer.hpp 2009-11-01 06:07:12 EST (Sun, 01 Nov 2009)
@@ -190,7 +190,7 @@
             {
                 for( ; old_size != size; ++old_size )
                     this->push_back( new BOOST_DEDUCED_TYPENAME
- boost::remove_pointer<value_type>::type );
+ boost::remove_pointer<value_type>::type() );
             }
 
             BOOST_ASSERT( this->size() == size );
@@ -224,7 +224,7 @@
             {
                 for( ; old_size != size; ++old_size )
                     this->push_front( new BOOST_DEDUCED_TYPENAME
- boost::remove_pointer<value_type>::type );
+ boost::remove_pointer<value_type>::type() );
             }
 
             BOOST_ASSERT( this->size() == size );

Modified: branches/release/boost/ptr_container/ptr_sequence_adapter.hpp
==============================================================================
--- branches/release/boost/ptr_container/ptr_sequence_adapter.hpp (original)
+++ branches/release/boost/ptr_container/ptr_sequence_adapter.hpp 2009-11-01 06:07:12 EST (Sun, 01 Nov 2009)
@@ -521,7 +521,7 @@
             {
                 for( ; old_size != size; ++old_size )
                     this->push_back( new BOOST_DEDUCED_TYPENAME
- boost::remove_pointer<value_type>::type );
+ boost::remove_pointer<value_type>::type() );
             }
 
             BOOST_ASSERT( this->size() == size );
@@ -555,7 +555,7 @@
             {
                 for( ; old_size != size; ++old_size )
                     this->push_front( new BOOST_DEDUCED_TYPENAME
- boost::remove_pointer<value_type>::type );
+ boost::remove_pointer<value_type>::type() );
             }
 
             BOOST_ASSERT( this->size() == size );


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