Ticket #2807: slist.hpp.patch

File slist.hpp.patch, 515 bytes (added by Andrey Semashev, 14 years ago)

The patch that fixes the problem (against branches/release)

  • slist.hpp

     
    12641264            carry.splice_after(carry.cbefore_begin(), *this, this->cbefore_begin());
    12651265            int i = 0;
    12661266            while(i < fill && !counter[i].empty()) {
     1267               carry.swap(counter[i]);
    12671268               last_inserted = carry.merge(counter[i++], p);
    12681269            }
    12691270            BOOST_INTRUSIVE_INVARIANT_ASSERT(counter[i].empty());