From a9a0d152d95dc816b080e9900cbac66319612ee7 Mon Sep 17 00:00:00 2001 From: Gennaro Prota Date: Sat, 21 Jun 2025 12:56:20 +0200 Subject: [PATCH] Remove a hopefully outdated workaround --- include/boost/dynamic_bitset/config.hpp | 15 --------------- include/boost/dynamic_bitset/dynamic_bitset.hpp | 5 +---- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/include/boost/dynamic_bitset/config.hpp b/include/boost/dynamic_bitset/config.hpp index 95850fb..029236a 100644 --- a/include/boost/dynamic_bitset/config.hpp +++ b/include/boost/dynamic_bitset/config.hpp @@ -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 diff --git a/include/boost/dynamic_bitset/dynamic_bitset.hpp b/include/boost/dynamic_bitset/dynamic_bitset.hpp index 8784ba6..d73e1de 100644 --- a/include/boost/dynamic_bitset/dynamic_bitset.hpp +++ b/include/boost/dynamic_bitset/dynamic_bitset.hpp @@ -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 friend bool operator==(const dynamic_bitset& a, @@ -353,7 +351,6 @@ public: template friend std::size_t hash_value(const dynamic_bitset& 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);