$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] zip_iterator and sTL algorithms like random_shuffle
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-03-30 23:35:38
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