
29 Jul
2008
29 Jul
'08
12:02 p.m.
joel falcou wrote:
While we're speaking of traits, could it be possible to have a remove_all_pointers which remove all the pointer qualifier of a type (much like remove_all_extent do for arrays) ?
Probably :-) Anyone else have a need for this?
Other point, shouldn't the return type of all meta-function be mpl::true_ and mpl::false_ ? It is somehow cumbersome to have two set of boolean meta-data.
type_traits uses integral_constant<bool,val> for true/false results which in turn inherits from mpl::bool_<val> so the two should be completely compatible with each other. Note that integral_constant is part of the TR1 and the next std, where as MPL is not, so type_traits won't be changing in this respect. John.