mirror of
https://github.com/boostorg/utility.git
synced 2025-05-08 18:34:02 +00:00
Cease dependence on ContainerHash
by local `hash_range` forward declaration
This commit is contained in:
parent
9ad7e51912
commit
6cca23a63a
@ -15,7 +15,6 @@ target_include_directories(boost_utility INTERFACE include)
|
||||
target_link_libraries(boost_utility
|
||||
INTERFACE
|
||||
Boost::config
|
||||
Boost::container_hash
|
||||
Boost::core
|
||||
Boost::io
|
||||
Boost::preprocessor
|
||||
|
@ -23,7 +23,6 @@
|
||||
#include <boost/io/ostream_put.hpp>
|
||||
#include <boost/utility/string_view_fwd.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <boost/container_hash/hash_fwd.hpp>
|
||||
|
||||
#include <cstddef>
|
||||
#include <stdexcept>
|
||||
@ -652,6 +651,9 @@ namespace boost {
|
||||
}
|
||||
#endif
|
||||
|
||||
// Forward declaration of Boost.ContainerHash function
|
||||
template <class It> std::size_t hash_range(It, It);
|
||||
|
||||
template <class charT, class traits>
|
||||
std::size_t hash_value(basic_string_view<charT, traits> s) {
|
||||
return boost::hash_range(s.begin(), s.end());
|
||||
|
Loading…
x
Reference in New Issue
Block a user