iter_swapping vector<bool>::iterator..

Felix Koehler felix.koehler@gmail.com
Mon Mar 21 16:24:00 GMT 2005


On Mon, 21 Mar 2005 14:48:13 +0000, Chris Jefferson <caj@cs.york.ac.uk> wrote:

> I've attached iter_swap_patch (a very small patch to iter_swap in
> stl_algobase.h), a test case (20577.cc) and a Changelog. Sorry that this
> isn't slightly neater.. If you have some code with some vector<bool>s
> (and things derived from them), it would be really nice if you could
> test it :)
> 

Nice job. I have applied your patch and tested every vector<bool> code
I remember writing. Everything compiles fine. All results are the same
as before the breakage, id est hopefully correct ;-)

Tested functions are at least:
std::swap, std::fill_n, std::reverse, std::rotate, begin(), end()

Thanks alot,
Felix



More information about the Libstdc++ mailing list