M
Michael DOUBEZ
kwikius a écrit :
Yes, I agree that POD usage in this case is as clear as the bottom of my
boots.
And you are right, it doesn't work any more (I used to do that before
iterators became iterators ) but I am sure one can easily design
something like the normal_iterator in no time.
Regards,
Michael
Michael said:And using POD:
int array [] = {1,2,3,4,5};
std::vector<int> vect;
//should work
vect.insert(&array[0],&array[sizeof(array)/sizeof(int)]);
hmm.... clearly superior to:
for_each(array,push_back(vect));
Yes, I agree that POD usage in this case is as clear as the bottom of my
boots.
And you are right, it doesn't work any more (I used to do that before
iterators became iterators ) but I am sure one can easily design
something like the normal_iterator in no time.
Regards,
Michael