Cease dependence on ContainerHash

by local `hash_range` forward declaration
This commit is contained in:
Nikita Kniazev committed 2021-06-20 19:34:05 +03:00
1 parent 9ad7e51912
commit 6cca23a63a
2 files changed
+3 -2

No files matched your search

+3 -1
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());