From ea4963031add53124406c57e9309c1fed27ce500 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Mon, 12 Mar 2001 14:01:34 +0000 Subject: [PATCH] Add comment: int_fast_t works for unsigned too. [SVN r9545] --- include/boost/integer.hpp | 2 ++ integer.htm | 2 ++ 2 files changed, 4 insertions(+) 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