Boost logo

Boost :

From: Beman Dawes (beman_at_[hidden])
Date: 1999-08-17 13:09:59


Greg and Valentin go back and forth:

>> > > > > This may be just a clarification, but what should be the
value of
>> > > > > integer_traits<int32_t>::const_max? 2147483647?
>> > > >
>> > > > What could it be, except 2147483647 = 2**31-1 ?
>> > >
>> > > On a 36 bit machine?
>> >
>> > Of course. int32_t has 32 bits.
>>
>> So it is undefined on systems with no 32 bit type?
>>
>> Maybe I'm being dense, but I thought that int32_t was just a
typedef for a
>> big enough type for 32 bits.
>
>You are describing int_least32_t. int32_t has exactly 32 bits.

Ouch! It's clear we need to document boost/cstdint.hpp. Just
mentioning the C9X standard, which isn't even available to the public
yet, isn't good enough.

I will try to hack something up and post it a little later today.

--Beman


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