mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-26 06:32:11 +00:00
Compare commits
4 Commits
boost-1.38
...
boost-1.40
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf481f63c4 | ||
|
|
e3a2ca7276 | ||
|
|
38819630fd | ||
|
|
6d0f9801f5 |
@@ -1,3 +1,9 @@
|
||||
#
|
||||
# Copyright Troy D. Straszheim
|
||||
#
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# See http://www.boost.org/LICENSE_1_0.txt
|
||||
#
|
||||
#----------------------------------------------------------------------------
|
||||
# This file was automatically generated from the original CMakeLists.txt file
|
||||
# Add a variable to hold the headers for the library
|
||||
|
||||
@@ -999,20 +999,26 @@ dynamic_bitset<Block, Allocator>::count() const
|
||||
using detail::dynamic_bitset_impl::access_by_blocks;
|
||||
using detail::dynamic_bitset_impl::value_to_type;
|
||||
|
||||
#if BOOST_WORKAROUND(__GNUC__, == 4) && (__GNUC_MINOR__ == 3) && (__GNUC_PATCHLEVEL__ == 3)
|
||||
// NOTE: Explicit qualification of "bits_per_block"
|
||||
// breaks compilation on gcc 4.3.3
|
||||
enum { 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 =
|
||||
enum { no_padding =
|
||||
dynamic_bitset<Block, Allocator>::bits_per_block
|
||||
== CHAR_BIT * sizeof(Block);
|
||||
== CHAR_BIT * sizeof(Block) };
|
||||
#endif
|
||||
|
||||
const bool enough_table_width = table_width >= CHAR_BIT;
|
||||
enum { enough_table_width = table_width >= CHAR_BIT };
|
||||
|
||||
const bool mode = (no_padding && enough_table_width)
|
||||
enum { mode = (no_padding && enough_table_width)
|
||||
? access_by_bytes
|
||||
: access_by_blocks;
|
||||
: access_by_blocks };
|
||||
|
||||
return do_count(m_bits.begin(), num_blocks(), Block(0),
|
||||
static_cast<value_to_type<mode> *>(0));
|
||||
static_cast<value_to_type<(bool)mode> *>(0));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
#
|
||||
# Copyright Troy D. Straszheim
|
||||
#
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# See http://www.boost.org/LICENSE_1_0.txt
|
||||
#
|
||||
boost_additional_test_dependencies(dynamic_bitset BOOST_DEPENDS test config)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user