$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r58211 - sandbox/itl/libs/itl/example/large_bitset_
From: afojgo_at_[hidden]
Date: 2009-12-07 06:05:51
Author: jofaber
Date: 2009-12-07 06:05:50 EST (Mon, 07 Dec 2009)
New Revision: 58211
URL: http://svn.boost.org/trac/boost/changeset/58211
Log:
Portability adjustments for gcc. Replaced CHAR_BIT by numeric_limits<>::digits. Stable {msvc-9.0} 
Text files modified: 
   sandbox/itl/libs/itl/example/large_bitset_/large_bitset.hpp |     3 ++-                                     
   1 files changed, 2 insertions(+), 1 deletions(-)
Modified: sandbox/itl/libs/itl/example/large_bitset_/large_bitset.hpp
==============================================================================
--- sandbox/itl/libs/itl/example/large_bitset_/large_bitset.hpp	(original)
+++ sandbox/itl/libs/itl/example/large_bitset_/large_bitset.hpp	2009-12-07 06:05:50 EST (Mon, 07 Dec 2009)
@@ -142,7 +142,8 @@
 //[large_bitset_impl_constants
 private:                                      // Example value
     static const word_type                    //   8-bit case  
-        digits  = sizeof(word_type)*CHAR_BIT, //   8           Size of the associated bitsets 
+        digits  = std::numeric_limits         // --------------------------------------------------------------
+                  <word_type>::digits       , //   8           Size of the associated bitsets 
         divisor = digits                    , //   8           Divisor to find intervals for values
         last    = digits-1                  , //   7           Last bit (0 based)
         shift   = log2_<divisor>::value     , //   3           To express the division as bit shift