
2 May
2012
2 May
'12
12:25 a.m.
The type yielded by boost::uint_t<N>::fast seems pretty clear: "The easiest-to-manipulate, built-in, unsigned integral type with at least N bits." But when I run the following program, which prints the number of bits in the type returned by boost::uint_t<65>::fast (i.e., a type with at least 65 bits), I get 64. #include <iostream> #include <climits> #include <boost/integer.hpp> int main() { std::cout << "boost::uint_t<65>::fast has " << CHAR_BIT * sizeof(boost::uint_t<65>::fast) << " bits\n"; } I get the same results with VC10, VC11 beta, and gcc 4.7 on Win32 with Boost 1.49. I must be doing something wrong, right? But what? Thanks, Scott