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]

[v3] add_unsigned/remove_unsigned tweaks


Adds in signed char bits as discussed by Paolo and Howard, and tests.

In addition, this adds compile-time warnings on things like

__gnu_cxx::__remove_unsigned<float>::__type
__gnu_cxx::__add_unsigned<bool>::__type

Even though these constructs are admittedly bizarre, it looks like this "trait" is
converging on semantic meaning, and signed-ness means nothing for
floating point types. (Last time I checked.)

tested x86/linux

-benjamin

Attachment: p.20060929-2
Description: Text document


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