[libstdc++] numeric_limits.cc check the wchar_t limits facility
Andreas Schwab
schwab@suse.de
Fri Oct 26 11:11:00 GMT 2001
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
More information about the Libstdc++
mailing list