|
Boost : |
From: Rob Stewart (stewart_at_[hidden])
Date: 2005-06-08 11:30:54
From: David Abrahams <dave_at_[hidden]>
>
> I don't understand why you'd choose int for one and short for the
> other when they have the same range requirements: both int and short
> are required to be at least 16 bits and neither short nor int is
> required to be more than 16 bits. Can you explain that?
AFAIK, the only thing you can say about the size of int is that
it must handle the INT_MIN to INT_MAX range on a given platform
and the only thing you can say about short is that it is no
bigger than int and at least one byte.
Have I missed something that requires both to be at least 16
bits?
-- Rob Stewart stewart_at_[hidden] Software Engineer http://www.sig.com Susquehanna International Group, LLP using std::disclaimer;
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk