|
Boost Users : |
From: imre_at_[hidden]
Date: 2006-08-16 08:15:20
From: David Abrahams <dave_at_[hidden]>
> Is it possible to do this trick during compilation time?
> I was able to go from type lists to boost::cons but I can't find a way
> to make that last step.
Not sure what you mean by "that last step..."
namespace mpl = boost::mpl;
using namespace mpl::placeholders;
typedef mpl::vector<int, long, char const*> types;
typedef mpl::fold<types, boost::cons<_2,_1> >::type tuple_type;
tuple_type some_tuple;
When I try to compile this, I receive the following error:
boost/mpl/aux_/preprocessed/plain/apply_wrap.hpp(48) : error C2039: 'apply'
: is not a member of 'boost::mpl::na'
What does this means?
Thx
ImRe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net