[v3] ext/type_traits.h

Gennaro Prota gennaro_prota@yahoo.com
Thu Sep 28 09:43:00 GMT 2006


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.



More information about the Libstdc++ mailing list