Closed Quuxplusone closed 2 years ago
int main() { plf::hive<int> h = {1,0,1}; std::erase(h, 0); auto it = h.end(); auto jt = h.end(); std::advance(it, -1); // use the operator-=()-alike `advance` overload --jt; // use operator--() assert(it == jt); // assert-fails }
The bug here seems to be not just the mirror-image of #24, but actually down at https://github.com/mattreecebentley/plf_hive/blob/main/plf_hive.h#L730 instead (it should use last_endpoint instead of capacity).
last_endpoint
capacity
Fixed, thanks-
The bug here seems to be not just the mirror-image of #24, but actually down at https://github.com/mattreecebentley/plf_hive/blob/main/plf_hive.h#L730 instead (it should use
last_endpoint
instead ofcapacity
).