Boost logo

Boost :

Subject: Re: [boost] Interactive metaprogramming shells
From: Abel Sinkovics (abel_at_[hidden])
Date: 2014-01-26 07:16:52


Hi Rob,

On 2014-01-26 13:10, Robert Jones wrote:
> I'm probably doing something naively foolish, but your example didn't
> work for me.
>
>> boost::mpl::push_front<boost::mpl::vector<int, char>, double>::type
> <stdin>:6:26: error: use of undeclared identifier 'boost'
> <stdin>:6:49: error: use of undeclared identifier 'boost'
> <stdin>:6:71: error: expected '(' for function-style cast or type construction
> <stdin>:6:78: error: expected unqualified-id

You need to include the Boost.MPL headers:

#include <boost/mpl/vector.hpp>
#include <boost/mpl/push_front.hpp>

And to get formatting, the following header as well:

#include <metashell/formatter/vector.hpp>

And then you can run the example:

boost::mpl::push_front<boost::mpl::vector<int, char>, double>::type

Regards,
   Ábel
||


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