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] ext/type_traits.h


On Mon, 25 Sep 2006 17:35:00 +0200, Paolo Carlini <pcarlini@suse.de>
wrote:

>I see. All in all, I'm coming to think that, whereas __add_signed & co 
>make perfect sense to me *as implementation details* probably the 
>eventual __to_signed and __to_unsigned make much more sense to the users 
>of the library (or elsewhere in the library itself as implementation aids).

I don't think this adds too much to the good discussion, but I've add
these two utilities for some time now in my own type traits (soon to
be released under the GPL, by the way) and they have proved to be
really useful. One case that immediately comes to mind for to_unsigned
is the conversion difference_type -> size_type.

--
Genny.


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