C++ meta Programming to create a new typelist with remove_const applied to each element
- by Srinivasa Varadan
Hi Could anyone give me a sample program to "Create an ApplyRemoveConst template that
constructs a new typelist with remove_const applied to each element"
For example:
typedef TYPELIST_3(A, const B, B) TL;
typedef ApplyRemoveConst::Result TL2;
// TL2 is the same as TYPELIST_3(A, B, B)