
13 Sep
2005
13 Sep
'05
6:16 p.m.
for(int_itr itr(av.begin()); itr != int_itr(av.end()); ++itr) ; } =========
Unfortunately, the above code seg faults when executed. I imagine I've probably constructed my filter_iterator incorrectly somehow. Any ideas?
You need to replace your for-loop with the following one: for(int_itr itr(av.begin(), av.end()); itr != int_itr(av.end(), av.end()); ++itr)