mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Don't repeat the preprocessing condition to specialize std::hash
This commit is contained in:
@@ -56,4 +56,8 @@ make_non_const( T t )
|
||||
|
||||
#endif
|
||||
|
||||
#if ! defined( BOOST_NO_CXX11_HDR_FUNCTIONAL ) && ! defined( BOOST_DYNAMIC_BITSET_NO_STD_HASH )
|
||||
# define BOOST_DYNAMIC_BITSET_SPECIALIZE_STD_HASH
|
||||
#endif
|
||||
|
||||
#endif // include guard
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#if ! defined( BOOST_NO_CXX11_HDR_FUNCTIONAL ) && ! defined( BOOST_DYNAMIC_BITSET_NO_STD_HASH )
|
||||
#if defined( BOOST_DYNAMIC_BITSET_SPECIALIZE_STD_HASH )
|
||||
# include <functional>
|
||||
namespace std {
|
||||
|
||||
|
||||
@@ -1761,7 +1761,7 @@ dynamic_bitset< Block, Allocator >::bit_appender::get_count() const
|
||||
} // namespace boost
|
||||
|
||||
// std::hash support
|
||||
#if ! defined( BOOST_NO_CXX11_HDR_FUNCTIONAL ) && ! defined( BOOST_DYNAMIC_BITSET_NO_STD_HASH )
|
||||
#if defined( BOOST_DYNAMIC_BITSET_SPECIALIZE_STD_HASH )
|
||||
namespace std {
|
||||
template< typename Block, typename Allocator >
|
||||
struct hash< boost::dynamic_bitset< Block, Allocator > >
|
||||
|
||||
Reference in New Issue
Block a user