diff --git a/include/boost/integer.hpp b/include/boost/integer.hpp index 058a905..2410859 100644 --- a/include/boost/integer.hpp +++ b/include/boost/integer.hpp @@ -23,6 +23,7 @@ namespace boost // Helper templates ------------------------------------------------------// // fast integers from least integers + // int_fast_t<> works correctly for unsigned too, in spite of the name. template< typename LeastInt > struct int_fast_t { typedef LeastInt fast; }; // imps may specialize @@ -70,6 +71,7 @@ namespace boost (Bits <= std::numeric_limits::digits) >::least least; typedef typename int_fast_t::fast fast; + // int_fast_t<> works correctly for unsigned too, in spite of the name. }; // The same dispatching technique can be used to select types based on diff --git a/integer.htm b/integer.htm index 9dc16a1..e4d3473 100644 --- a/integer.htm +++ b/integer.htm @@ -34,6 +34,7 @@ appropriate to use the types supplied in namespace boost { // fast integers from least integers + // int_fast_t<> works correctly for unsigned too, in spite of the name. template< typename LeastInt > // Required: LeastInt is integral type, not bool struct int_fast_t { typedef LeastInt fast; }; // implementations may specialize @@ -51,6 +52,7 @@ appropriate to use the types supplied in implementation-supplied least; typedef int_fast_t<least>::fast fast; + // int_fast_t<> works correctly for unsigned too, in spite of the name. }; } // namespace boost