
13 Mar
2005
13 Mar
'05
8 p.m.
"Peter Dimov" <pdimov@mmltd.net> wrote in message news:00aa01c52800$a3257820$6501a8c0@pdimov2... | Thorsten Ottosen wrote: | > "David Abrahams" <dave@boost-consulting.com> wrote in message | > news:ubr9ow6b6.fsf@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