Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2004-10-13 17:13:47


On 10/13/2004 02:15 PM, Larry Evans wrote:
[snip]
> I changed the toy example to:
>
> <------------------
> #include <boost/mpl/eval_if.hpp>
> #include <boost/mpl/deref.hpp>
> struct C
> {
> static bool const value=true;
> };
> struct f1
> {};
> struct f2
> {};
> namespace boost{namespace mpl{
>
> typedef deref<eval_if<C,f1,f2> >::type X;
> X x;
>
> }}
> >------------------
> and got this error:

I apologize. Both f1 and f2 need a typedef for type.


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