Boost logo

Boost :

From: Paul Mensonides (pmenso57_at_[hidden])
Date: 2004-03-21 19:07:28


> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Larry Evans

> Yes! Thanks very much. With source:

> however, g++ complains:
>
> /usr/local/gcc-3.4-20040225/bin/g++ -ggdb -c -Wall -MMD -O0
> -ggdb -I/home/evansl/prog_dev/boost-root.ln/boost_dev
> -I/home/evansl/prog_dev/boost-root.ln -o pp_ctor_forwarder.o
> pp_ctor_forwarder.cpp
> pp_ctor_forwarder.cpp:49: error: `struct boost::mpl::at_c<VecOfTypes,
> 0l>::type' is not a type
> pp_ctor_forwarder.cpp:49: error: ISO C++ forbids declaration of `a0'
> with no type

These are because of a missing typename. Instead of:

#define PP_CTOR_FORWARDER_PARAM(z, n, _) \
    at_c<VecOfTypes, n>::type BOOST_PP_CAT(a, n) \
    /**/

It should be:

#define PP_CTOR_FORWARDER_PARAM(z, n, _) \
    typename at_c<VecOfTypes, n>::type BOOST_PP_CAT(a, n) \
    /**/

> Again, thanks very much!

You're welcome.

Regards,
Paul Mensonides


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