Andy, while waiting for Chris' feedback, you may want to test the above on your real applications. In 4.8.x some nth_algorithm details are different (the above is versus mainline), but you can quickly find a couple of (__last - 2) which I'm asking you to change to (__last - 1)
Don't tell me is just this:
Index: include/ bits/stl_ algo.h ======= ======= ======= ======= ======= ======= ======= ======= ==== bits/stl_ algo.h (revision 203835) bits/stl_ algo.h (working copy) essIterator __last, _Compare __comp)
_RandomAccessIt erator __mid = __first + (__last - __first) / 2; move_median_ to_first( __first, __first + 1, __mid, (__last - 2), move_median_ to_first( __first, __first + 1, __mid, (__last - 1), unguarded_ partition( __first + 1, __last, __first, __comp);
=======
--- include/
+++ include/
@@ -1917,7 +1917,7 @@
_RandomAcc
{
- std::__
+ std::__
__comp);
return std::__
}
??
Andy, while waiting for Chris' feedback, you may want to test the above on your real applications. In 4.8.x some nth_algorithm details are different (the above is versus mainline), but you can quickly find a couple of (__last - 2) which I'm asking you to change to (__last - 1)