Ticket #3579: ptr_container.diff

File ptr_container.diff, 1.9 KB (added by roman.perepelitsa@…, 13 years ago)

Patch with the fix

  • ptr_sequence_adapter.hpp

     
    519519            {
    520520                for( ; old_size != size; ++old_size )
    521521                    this->push_back( new BOOST_DEDUCED_TYPENAME
    522                                      boost::remove_pointer<value_type>::type );
     522                                     boost::remove_pointer<value_type>::type() );
    523523            }
    524524
    525525            BOOST_ASSERT( this->size() == size );
     
    553553            {
    554554                for( ; old_size != size; ++old_size )
    555555                    this->push_front( new BOOST_DEDUCED_TYPENAME
    556                                       boost::remove_pointer<value_type>::type );
     556                                      boost::remove_pointer<value_type>::type() );
    557557            }
    558558
    559559            BOOST_ASSERT( this->size() == size );
  • ptr_circular_buffer.hpp

     
    191191            {
    192192                for( ; old_size != size; ++old_size )
    193193                    this->push_back( new BOOST_DEDUCED_TYPENAME
    194                                      boost::remove_pointer<value_type>::type );
     194                                     boost::remove_pointer<value_type>::type() );
    195195            }
    196196
    197197            BOOST_ASSERT( this->size() == size );
     
    225225            {
    226226                for( ; old_size != size; ++old_size )
    227227                    this->push_front( new BOOST_DEDUCED_TYPENAME
    228                                       boost::remove_pointer<value_type>::type );
     228                                      boost::remove_pointer<value_type>::type() );
    229229            }
    230230
    231231            BOOST_ASSERT( this->size() == size );