Cease dependence on ContainerHash

by local `hash_range` forward declaration
This commit is contained in:
Nikita Kniazev 2020-05-26 01:32:56 +03:00
parent 9ad7e51912
commit 6cca23a63a
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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());