Show differencesHistory of post edits
#ActualBrother Bob
Posted 23 October 2012 - 06:24 AM
Boost has a class to make integer type selection based on size; boost::int_t<N>. It has three nested typedefs; fast, least and exact, representing the fastest type with at least N bits, the smallest type than can accommodate at least N bits, and a type with exactly N bits. The exact typedef is only available if there actually is a type with that many bits though.
#1Brother Bob
Posted 23 October 2012 - 06:24 AM
Boost has a class to make integer type selection based on size; boost::int_t<N>. It has three nested typedefs; fast, least and exact, representing the fastest type with at least N bits, the smallest type than can accommodate at least N bits, and a type with exactly N bits. The exact typedef is only available if there actually is a type with that many bits though.