|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52879 - trunk/boost/dynamic_bitset
From: hartmut.kaiser_at_[hidden]
Date: 2009-05-10 12:52:14
Author: hkaiser
Date: 2009-05-10 12:52:14 EDT (Sun, 10 May 2009)
New Revision: 52879
URL: http://svn.boost.org/trac/boost/changeset/52879
Log:
Applying patch fixing problem on certain patch levels for gcc.4.3.3/Ubuntu
Text files modified:
trunk/boost/dynamic_bitset/dynamic_bitset.hpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: trunk/boost/dynamic_bitset/dynamic_bitset.hpp
==============================================================================
--- trunk/boost/dynamic_bitset/dynamic_bitset.hpp (original)
+++ trunk/boost/dynamic_bitset/dynamic_bitset.hpp 2009-05-10 12:52:14 EDT (Sun, 10 May 2009)
@@ -999,11 +999,17 @@
using detail::dynamic_bitset_impl::access_by_blocks;
using detail::dynamic_bitset_impl::value_to_type;
+#if BOOST_WORKAROUND(__GNUC__, == 4) && (__GNUC_MINOR__ == 3)
+ // NOTE: Explicitly qualification of "bits_per_block"
+ // breaks compilation on gcc 4.3.3
+ const bool no_padding = bits_per_block == CHAR_BIT * sizeof(Block);
+#else
// NOTE: Explicitly qualifying "bits_per_block" to workaround
// regressions of gcc 3.4.x
const bool no_padding =
dynamic_bitset<Block, Allocator>::bits_per_block
== CHAR_BIT * sizeof(Block);
+#endif
const bool enough_table_width = table_width >= CHAR_BIT;
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