Ensure all #includes are at the top of the source file

This commit is contained in:
Gennaro Prota
2025-08-29 17:53:20 +02:00
parent 055631591a
commit 0b177806ce

View File

@@ -28,6 +28,21 @@
#include <string>
#include <vector>
#if ! defined( BOOST_NO_CXX11_HDR_FUNCTIONAL ) && ! defined( BOOST_DYNAMIC_BITSET_NO_STD_HASH )
# include <functional>
namespace std {
//! Support for std::hash.
//!
//! You can exclude this support by defining the macro
//! `BOOST_DYNAMIC_BITSET_NO_STD_HASH`.
// -----------------------------------------------------------------------
template< typename Block, typename Allocator >
struct hash< boost::dynamic_bitset< Block, Allocator > >;
}
#endif
namespace boost {
//! The `dynamic_bitset` template represents a set of bits.
@@ -1515,20 +1530,5 @@ from_block_range( BlockIterator first, BlockIterator last, dynamic_bitset< Block
}
#if ! defined( BOOST_NO_CXX11_HDR_FUNCTIONAL ) && ! defined( BOOST_DYNAMIC_BITSET_NO_STD_HASH )
# include <functional>
namespace std {
//! Support for std::hash.
//!
//! You can exclude this support by defining the macro
//! `BOOST_DYNAMIC_BITSET_NO_STD_HASH`.
// -----------------------------------------------------------------------
template< typename Block, typename Allocator >
struct hash< boost::dynamic_bitset< Block, Allocator > >;
}
#endif
#include "boost/dynamic_bitset/impl/dynamic_bitset.ipp"
#endif // include guard