Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58212 - sandbox/itl/libs/itl/example/large_bitset_
From: afojgo_at_[hidden]
Date: 2009-12-07 06:12:46


Author: jofaber
Date: 2009-12-07 06:12:45 EST (Mon, 07 Dec 2009)
New Revision: 58212
URL: http://svn.boost.org/trac/boost/changeset/58212

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_/bits.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/itl/libs/itl/example/large_bitset_/bits.hpp
==============================================================================
--- sandbox/itl/libs/itl/example/large_bitset_/bits.hpp (original)
+++ sandbox/itl/libs/itl/example/large_bitset_/bits.hpp 2009-12-07 06:12:45 EST (Mon, 07 Dec 2009)
@@ -21,7 +21,7 @@
 {
 public:
     typedef NaturalT word_type;
- static const int digits = CHAR_BIT*sizeof(NaturalT);
+ static const int digits = std::numeric_limits<NaturalT>::digits;
     static const word_type w1 = static_cast<NaturalT>(1) ;
 
     bits():_bits(){}


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk