Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-03-13 15:00:10


"Peter Dimov" <pdimov_at_[hidden]> wrote in message
news:00aa01c52800$a3257820$6501a8c0_at_pdimov2...
| Thorsten Ottosen wrote:
| > "David Abrahams" <dave_at_[hidden]> wrote in message
| > news:ubr9ow6b6.fsf_at_boost-consulting.com...
| >>
| >> There's no guarantee that the integer type will have sufficient size.
| >
| > BOOST_STATIC_ASSERT( sizeof(void*) >= sizeof(std::size_t))
| >
| > ?
|
| The reverse, probably.

yeah, right.

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

-Thorsten


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