Ticket #12919: hashed_index.patch

File hashed_index.patch, 743 bytes (added by Alex Huszagh <ahuszagh@…>, 6 years ago)

Diff between old and new for bug fix

  • include/boost/multi_index/hashed_index.hpp

    diff --git include/boost/multi_index/hashed_index.hpp include/boost/multi_index/hashed_index.hpp
    index 436fecf..73202fe 100644
    private:  
    13521352        std::size_t,allocator_type>       hashes(get_allocator(),size());
    13531353      auto_space<
    13541354        node_impl_pointer,allocator_type> node_ptrs(get_allocator(),size());
    1355       std::size_t                         i=0;
     1355      std::size_t                         i=0, size_=size();
    13561356      bool                                within_bucket=false;
    13571357      BOOST_TRY{
    1358         for(;;++i){
     1358        for(;i!=size_;++i){
    13591359          node_impl_pointer x=end_->prior();
    13601360          if(x==end_)break;