|
Boost : |
Subject: Re: [boost] Interactive metaprogramming shells
From: Larry Evans (cppljevans_at_[hidden])
Date: 2014-12-28 11:35:23
On 01/26/2014 06:16 AM, Abel Sinkovics wrote:
> 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
> ||
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
How are the include directories specified?
IOW, suppose, I've my own boost/mpl/vector.hpp and I want
to use that instead of the boost/mpl one. Is there something
like the -I flag of gcc which does something analogous for
the metashell?
TIA.
-regards,
Larry
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk