|
Boost Users : |
From: Daryle Walker (darylew_at_[hidden])
Date: 2008-08-18 16:53:57
On Aug 18, 2008, at 12:15 PM, Andrea Denzler wrote:
>> You can also write your own template type that takes bitsize (or
>> value
>> range)
>> and resolves to the smallest native integral able to satisfy the
>> requirement.
>
> Sure, we know all that C/C++ fortunately allows to do that. But if
> such
> tasks, like cross platform serialization are so common, why not
> introducing
> them as a standard like with the STL.
Do you guys know that we have class templates with inner typedefs to
the built-in integer types that do what you want here? And they're
based on either bit-length or maximum/minimum value.
-- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT hotmail DOT com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net