iter_swapping vector<bool>::iterator..

Joe Buck Joe.Buck@synopsys.COM
Fri Mar 18 23:05:00 GMT 2005


On Fri, Mar 18, 2005 at 04:35:02PM +0000, Jonathan Wakely wrote:
> Would an iter_swap() overload for vector<bool>::iterator be conforming?

I'm not sure of the rules concerning extra specializations, but if allowed
it would seem like a good approach.

> Even if not, could you dispatch to a helper function inside iter_swap,
> which could be overloaded for vector<bool>::iterator ?

One of those two solutions might be the best thing to do.



More information about the Libstdc++ mailing list