This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] add_unsigned/remove_unsigned tweaks


> Clever use of enable_if in the primary.

Thanks. Of course, at some point in the future when std::tr1 traits can
be used in __add/remove_unsigned, we can just test for is_signed and
is_signed directly and then the declaration of wchar_t and bool
specializations will be un-necessary.

> Do we think that having both std::tr1::is_integral<T>::value (now in  
> the WP as std::is_integral<T>::value), and  
> std::__is_integer<T>::__value *and* having them mean two different  
> things is error prone or confusing?

Yes.

See my earlier emails. I've been trying to kill cpp_type_traits.h,
and replace it with tr1::type_traits for years. At this point, I'd
discourage yet more work on duplicating traits, however.

:(

http://gcc.gnu.org/ml/libstdc++/2006-09/msg00117.html

-benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]