Hi,
Can someone please explain to me WHY the standard does not allow the
input range and the output range to overlap for set_intersection?
I can't see why I can't do this (note sorted vectors, not sets or
anything)
vector<int> x = get_x();
vector<int> y = get_y();
x.erase(
set_intersection(x.begin(),x.end(),
y.begin(),y.end(),
x.begin()),
x.end());
?? I've looked at the g++ implementation, I see no reason why I can't
do this.
thanks
Paul