Remove a hopefully outdated workaround

This commit is contained in:
Gennaro Prota
2025-06-21 12:56:20 +02:00
parent 240c721d88
commit a9a0d152d9
2 changed files with 1 additions and 19 deletions

View File

@@ -13,7 +13,6 @@
#define BOOST_DYNAMIC_BITSET_CONFIG_HPP_GP_20040424
#include "boost/config.hpp"
#include "boost/detail/workaround.hpp"
// no-op function to workaround gcc bug c++/8419
//
@@ -28,20 +27,6 @@ namespace boost { namespace detail {
# define BOOST_DYNAMIC_BITSET_WRAP_CONSTANT(expr) (expr)
#endif
//
#if (defined BOOST_BORLANDC && BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x564))) \
|| (defined BOOST_NO_MEMBER_TEMPLATE_FRIENDS)
#define BOOST_DYNAMIC_BITSET_DONT_USE_FRIENDS
#endif
// if we can't use friends then we simply expose private members
//
#if defined(BOOST_DYNAMIC_BITSET_DONT_USE_FRIENDS)
#define BOOST_DYNAMIC_BITSET_PRIVATE public
#else
#define BOOST_DYNAMIC_BITSET_PRIVATE private
#endif
// A couple of macros to cope with libraries without locale
// support. The first macro must be used to declare a reference
// to a ctype facet. The second one to widen a char by using

View File

@@ -319,8 +319,6 @@ public:
size_type find_first(size_type pos) const;
size_type find_next(size_type pos) const;
#if !defined BOOST_DYNAMIC_BITSET_DONT_USE_FRIENDS
// lexicographical comparison
template <typename B, typename A>
friend bool operator==(const dynamic_bitset<B, A>& a,
@@ -353,7 +351,6 @@ public:
template <typename B, typename A>
friend std::size_t hash_value(const dynamic_bitset<B, A>& a);
#endif
public:
// forward declaration for optional zero-copy serialization support
@@ -491,7 +488,7 @@ private:
BOOST_DYNAMIC_BITSET_PRIVATE:
private:
bool m_unchecked_test(size_type pos) const;
static size_type calc_num_blocks(size_type num_bits);