Boost logo

Boost :

From: Russell Hind (rh_gmane_at_[hidden])
Date: 2005-03-10 03:14:20

Eric Niebler wrote:
> Russell Hind wrote:
>> Hi Eric, with the new version, I can't even get foreach.hpp to
>> compile. I get the following error on line 308:
>> [C++ Error] foreach.hpp(308): E2109 Not an allowed type
> This is a shot in the dark, but can you try the attached version? If
> this doesn't work, I'll need the help of someone familiar with this
> compiler.

Hi Eric,

I now get an error on line 311 of foreach.hpp which is in

template<typename T>
struct is_range_base
     BOOST_STATIC_CONSTANT(size_t, size =
     BOOST_STATIC_CONSTANT(bool, value = sizeof(yes_type)==size);
     typedef mpl::bool_<value> type;

The error is on the typedef mpl::bool_<value> type line. (with and
without the #defines in).

[C++ Error] foreach.hpp(311): E2231 Member is_range_base<T>::value
cannot be used without an object
[C++ Error] foreach.hpp(311): E2299 Cannot generate template
specialization from 'mpl::bool_<C_>'
[C++ Error] foreach.hpp(311): E2040 Declaration terminated incorrectly



Boost list run by bdawes at, gregod at, cpdaniel at, john at