mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Try a workaround to have MrDocs document the specialization of std::hash
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user