From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2006-09-21 09:46:10
> Peter Dimov wrote:
> > You need the C standard to get the complete picture; it states that
> > USHRT_MAX is at least 65535.
> The corresponding section of the C Standard you're referring
> to states [Appendix E:1, implementation limits (informative)]:
> The contents of the header <limits.h> are given below, in
> alphabetical order. The minimum magnitudes shown shall be
> replaced by implementation-defined magnitudes with the same sign.
> So no restriction imposed from the Standard here, AFAIU.
Ok, I found it. You're right. It's in the C Standard: 188.8.131.52.1 Sizes of
integer types <limits.h>:
maximum value for an object of type unsigned short int
USHRT_MAX 65535 // 2^16 - 1
Sorry for the noise.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk