J
Jeff Schwab
Would std::sort ever compare an object with itself? I'm not talking
about two distinct, equal-valued objects, but rather this == &that.
The container being sorted is a std::vector.
I've never seen this, but a coworker says he is. NB: I can't post
sample code that reproduces the issue, nor do I claim any bug in the
STL implementation (GCC 3.4.2). I'm just hoping a definitive answer
resides in one of the brains who frequent this group.
about two distinct, equal-valued objects, but rather this == &that.
The container being sorted is a std::vector.
I've never seen this, but a coworker says he is. NB: I can't post
sample code that reproduces the issue, nor do I claim any bug in the
STL implementation (GCC 3.4.2). I'm just hoping a definitive answer
resides in one of the brains who frequent this group.