This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] C++0x type_traits post-oxford additions



make_signed/make_unsigned require:
Requires: T is a cv integral type or enumeration, but not a bool type.

I.e. they are not supposed to work with floating point types.

Huh. Now that I look at this, I'm wondering why is_signed/is_unsigned work on all arithematic types where T(-1) < T(0), and make_signed/make_unsigned only work on all integral types except bool plus enumerated types? What's the reason for the inconsistency?


I don't see this in the rationale.

Anyway. I'll go ahead and add in your testcase contribution for decay, and try to fix up these known fails in the meantime.

best,
-benjamin


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