Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2001-03-12 09:15:09

At 03:41 PM 3/11/2001 -0500, Daryle Walker wrote:

>The class templates boost::int_t and boost::uint_t, in
>let an user find the smallest built-in type that has at least the given
>amount of bits, if possible. I was wondering if we could make similar
>class templates, but only work if the given number of bits is _exactly_
>a count of a built-in type. For example, on most common systems, we
>would want instances of 8 (unsigned char), 16 (unsigned short),
>and 32 (unsigned long) bits to work, but would want counts like 24 or
>13 bits to fail.

What about C99's and boost/cstdint.hpp int32_t, uint32_t, etc.? Is there a
reason you need a template rather than just specifying the particular type
you want?


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