Try a workaround to have MrDocs document the specialization of std::hash

This commit is contained in:
Gennaro Prota
2025-09-16 10:53:23 +02:00
parent 11088d0d80
commit c13a99640a
2 changed files with 2 additions and 6 deletions

View File

@@ -30,7 +30,6 @@
#if defined( BOOST_DYNAMIC_BITSET_SPECIALIZE_STD_HASH )
# include <functional>
namespace std {
//! Support for std::hash.
//!
@@ -38,9 +37,8 @@ namespace std {
//! `BOOST_DYNAMIC_BITSET_NO_STD_HASH`.
// -----------------------------------------------------------------------
template< typename Block, typename AllocatorOrContainer >
struct hash< boost::dynamic_bitset< Block, AllocatorOrContainer > >;
struct std::hash< boost::dynamic_bitset< Block, AllocatorOrContainer > >;
}
#endif
namespace boost {

View File

@@ -2224,10 +2224,9 @@ dynamic_bitset< Block, AllocatorOrContainer >::bit_appender::get_count() const
// std::hash support
#if defined( BOOST_DYNAMIC_BITSET_SPECIALIZE_STD_HASH )
namespace std {
template< typename Block, typename AllocatorOrContainer >
struct hash< boost::dynamic_bitset< Block, AllocatorOrContainer > >
struct std::hash< boost::dynamic_bitset< Block, AllocatorOrContainer > >
{
typedef boost::dynamic_bitset< Block, AllocatorOrContainer > argument_type;
typedef std::size_t result_type;
@@ -2239,5 +2238,4 @@ struct hash< boost::dynamic_bitset< Block, AllocatorOrContainer > >
}
};
}
#endif