
18 Aug
2008
18 Aug
'08
8:53 p.m.
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