
31 Mar
2009
31 Mar
'09
3:35 a.m.
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. In Christ, Steven Watanabe