Re: [Boost-users] [tuple] generating tuples from type lists

16 Aug
2006
16 Aug
'06
12:15 p.m.
From: David Abrahams <dave@boost-consulting.com>
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
6872
Age (days ago)
6872
Last active (days ago)
0 comments
1 participants
participants (1)
-
imre@u-tx.com