I have a class which has two attributes :
set< int > ens1_;
set< int > ens2_;
Now, I have a method which finds the intersection between these two sets. Here is what I wrote in my method:
set< int > ens;
set< int >::iterator it;
it = set_intersection(ensEntier1_.begin(), ensEntier1_.end(), ensEntier2_.begin(), ensEntier2_.end(), ens.begin());
return ens;
It gives me an error at compile inside the stl_algo.h but I don't know from where to start to correct the error
Thank you for your time
Etienne