|
Boost : |
Subject: Re: [boost] [mpl] Basic mpl sequence question
From: Jeffrey Hellrung (jhellrung_at_[hidden])
Date: 2010-03-04 00:14:47
Michael Robinson wrote:
> Hi,
<snip>
> I wrote this code:
> //
> // mpltest.C
> //
> #include<boost/mpl/vector.hpp>
>
> using namespace boost;
>
> typedef mpl::vector<char,short,int,long,float,double> types;
>
> typedef mpl::find<types,long>::type long_pos;
>
> int main()
> {
> }
>
> And I get this compiler error on the mpl::find line:
> $ g++ mpltest.C -ompltest
> mpltest.C:10: error: expected initializer before â<â token
<snip>
#include <boost/mpl/find.hpp> ?
Also check Boost.MPL docs to ensure that's the correct form and
everything...
- Jeff
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk