Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-06-08 15:04:24

Rob Stewart <stewart_at_[hidden]> writes:

> 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?


Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at