Boost logo

Boost Users :

From: Alexey Bakhvalov (bakhvalov_at_[hidden])
Date: 2005-09-13 13:16:07


> 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)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net