
27 Jul
2008
27 Jul
'08
11:37 a.m.
Hi
I am trying to write a meta-function class, receiving a list as argument and returning the reduced list by poping one element from the front.
Here is my code
struct Poplist
{
template<class seq>
struct apply
{
typedef pop_front<seq>::type res;
static const int value = size<seq>::value;
};
};
int main()
{
typedef list_c