Ticket #2807: list.hpp.patch

File list.hpp.patch, 536 bytes (added by Andrey Semashev, 14 years ago)

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

  • list.hpp

     
    978978            carry.splice(carry.cbegin(), *this, this->cbegin());
    979979            int i = 0;
    980980            while(i < fill && !counter[i].empty()) {
    981                carry.merge(counter[i++], p);
     981               counter[i].merge(carry, p);
     982               carry.swap(counter[i]);
     983               ++i;
    982984            }
    983985            carry.swap(counter[i]);
    984986            if(i == fill)