
4 Mar
2010
4 Mar
'10
5:14 a.m.
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