
31 Mar
2009
31 Mar
'09
9:08 a.m.
Steven Watanabe wrote:
AMDG
Andreas Fabri wrote:
I have two vectors and want to random_shuffle them the same way using the zip_iterator. I thought the code below would do it, but when I execute it I see that both sequences get screwded up.
What do I wrong?
The problem is that std::iter_swap doesn't work for zip_iterator and there is no standard compliant way to fix it.
Hi Steven, And there is no means of making a partial specialization of iter_swap? And even if so, who guarantees that std::random_shuffle or std::sort use iter_swap to swap ? andreas
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users