28 Jul
2008
28 Jul
'08
3:36 a.m.
Stjepan Rajko wrote:
2008/7/27 noman javed
: struct Poplist { template<class seq> struct apply { typedef pop_front<seq>::type res; static const int value = size<seq>::value; }; };
for starts, you need to use typename here:
typedef typename pop_front<seq>::type res;
Also, apply does not have a 'type' member typedef, so I think it is not
a metafunction.
What about (untested)
namespace mpl = ::boost::mpl;
struct Poplist : mpl::lambda