Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-03-13 15:16:59


Thorsten Ottosen wrote:
> "Peter Dimov" <pdimov_at_[hidden]> wrote in message
> news:00aa01c52800$a3257820$6501a8c0_at_pdimov2...
>> Technically, it's still not enough; sizeof gives you
>> the size of the object in chars, not the number of value bits.
>
> just so I get this, you're saying that even though sizeof( int ) ==
> 4, the implementation
> could choose to use only the first two bytes for the representation?

Or the middle 24 bits, yes. Integers are allowed to have padding. Same with
pointers.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk