Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2005-01-29 21:20:37


On 01/28/2005 04:27 PM, Larry Evans wrote:
> Is the following supposed to compile:
>
> enum
> visitor_numerals
> { visitor_n0
> , visitor_n1
> };
>
> typedef mpl::vector_c<visitor_numerals,visitor_n0> vec_viz_type;
> typedef mpl::at_c<vec_viz_type,0>::type vec_viz0_type;
>
> it does with intel but with gcc, I get:
[snip]
> /home/evansl/prog_dev/boost-release/boost_1_32_0/boost/mpl/aux_/preprocessed/gcc/vector_c.hpp:47:
> error: invalid conversion from `long int' to `visitor_numerals'
I'm seriously thinking about coding a workaround. Are there
any suggestions about how best to do it?

TIA.


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