|
Boost Users : |
From: Jon Kalb (kalb_at_[hidden])
Date: 2002-03-15 21:58:29
On 3/15/02 4:37 PM, "rodrigo_braz" <rodrigo_braz_at_[hidden]> wrote:
> --- In Boost-Users_at_y..., Jon Kalb <kalb_at_L...> wrote:
> Actually my main problem with this iterator is in the code below:
>
> #include <vector>
> #include "boost/iterator_adaptors.hpp"
>
> using namespace std;
> using namespace boost;
>
> struct is_active {
> bool operator()(int p) { return 0 < p; }
> };
>
> struct A
> {
> typedef
> filter_iterator_generator<is_active,vector<int>::iterator>::type
> active_iterator;
CodeWarrior doesn't complain about this code, but I think that it should be:
typedef typename
filter_iterator_generator<is_active,vector<int>::iterator>::type
active_iterator;
-- Jon Kalb Kalb_at_[hidden]
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