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]

Re: [libstdc++] numeric_limits.cc check the wchar_t limits facility


Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> writes:

|> I have no idea how to check for the signedness of wchar_t since two
|> targets define it as unsigned (hpux, aix) in contrast to all others
|> and I see no way of getting access to this information in a
|> painless way.

Does this work?

#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))

Andreas.

-- 
Andreas Schwab                                  "And now for something
Andreas.Schwab@suse.de				completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5


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