[boost] Note for those making bounded types (was: Re: integer_mask for long long)
by Daryle Walker other posts by this author
Sep 29 2005 12:08PM messages near this date
Re: [boost] integer_mask for long long
|
Re: [boost] toward a more modular boost
SOURCE On 9/25/05 5:43 AM, "Daryle Walker" <darylew@[...].com> wrote:
[SNIP]
> "integer_mask.hpp" doesn't use any extended integer types because
> "integer.hpp" didn't either.
>
> "integer.hpp" doesn't use any extended integer types because:
> 1. Their existence in compilers back then (2001) were more rare.
> 2. There were concerns back then that the extended types could not
> be used in value-based template parameters. That's important since
> Boost.CRC does that type of usage. I don't know how accurate that
> concern was then or is now.
>
> Possible solutions:
> A. Determine the largest integer type that can be used as a template
> parameter, and make new typedef-s if the result ever differs from
> (u)intmax_t on some platform. (Or we can always define the typedef
> to make it always available.) Make sure Boost.CRC uses the
> appropriate typedef.
[TRUNCATE]
This suggestion could be used for the bounded (numeric) type wrappers
mentioned in other message threads....
--
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT hotmail DOT com
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
|