Skip to content

Commit c13a996

Browse files
committed
Try a workaround to have MrDocs document the specialization of std::hash
1 parent 11088d0 commit c13a996

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

include/boost/dynamic_bitset/dynamic_bitset.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,15 @@
3030

3131
#if defined( BOOST_DYNAMIC_BITSET_SPECIALIZE_STD_HASH )
3232
# include <functional>
33-
namespace std {
3433

3534
//! Support for std::hash.
3635
//!
3736
//! You can exclude this support by defining the macro
3837
//! `BOOST_DYNAMIC_BITSET_NO_STD_HASH`.
3938
// -----------------------------------------------------------------------
4039
template< typename Block, typename AllocatorOrContainer >
41-
struct hash< boost::dynamic_bitset< Block, AllocatorOrContainer > >;
40+
struct std::hash< boost::dynamic_bitset< Block, AllocatorOrContainer > >;
4241

43-
}
4442
#endif
4543

4644
namespace boost {

include/boost/dynamic_bitset/impl/dynamic_bitset.ipp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,10 +2224,9 @@ dynamic_bitset< Block, AllocatorOrContainer >::bit_appender::get_count() const
22242224

22252225
// std::hash support
22262226
#if defined( BOOST_DYNAMIC_BITSET_SPECIALIZE_STD_HASH )
2227-
namespace std {
22282227

22292228
template< typename Block, typename AllocatorOrContainer >
2230-
struct hash< boost::dynamic_bitset< Block, AllocatorOrContainer > >
2229+
struct std::hash< boost::dynamic_bitset< Block, AllocatorOrContainer > >
22312230
{
22322231
typedef boost::dynamic_bitset< Block, AllocatorOrContainer > argument_type;
22332232
typedef std::size_t result_type;
@@ -2239,5 +2238,4 @@ struct hash< boost::dynamic_bitset< Block, AllocatorOrContainer > >
22392238
}
22402239
};
22412240

2242-
}
22432241
#endif

0 commit comments

Comments
 (0)