Boost logo

Boost :

From: Russell Hind (rh_gmane_at_[hidden])
Date: 2005-03-10 12:44:34


Eric Niebler wrote:
>
> I'm afraid you're out of luck, for now. Without access to this compiler,
> or knowledge of it's quirks, there's nothing I can do. I'll gladly
> accept a patch if you can make it work. The first thing I would try if I
> were you would be to change the line:
>
> typedef mpl::bool_<value> type;
>
> to
>
> typedef mpl::bool_<is_range_base<T>::value> type;
>
> That's all I can think of right now.
>

Hi Eric, I'm trying to get the tests compiling now. I run in to
problems with things like this (in regress.cpp):

template<typename Range>
std::vector<int> to_vector_foreach_byval( Range & rng )
{
     std::vector<int> vect;
     typedef typename ::boost::range_result_iterator<Range>::type iterator;
     typedef typename ::boost::iterator_value<iterator>::type value;
     BOOST_FOREACH( value i, rng )
     {
         vect.push_back(i);
     }
     return vect;
}

The two typedef lines give these errors:

[C++ Error] main.cpp(110): E2437 'typename' should be followed by a
qualified, dependent type name
[C++ Error] main.cpp(111): E2437 'typename' should be followed by a
qualified, dependent type name

So quite a few of these through the regression .cpp file. Any ideas how
to solve these so I can run the tests?

Thanks

Russell


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk