mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
Merge pull request #67 from Kojoley/patch-1
Cease dependence on ContainerHash
This commit is contained in:
commit
375382e1e6
@ -15,7 +15,6 @@ target_include_directories(boost_utility INTERFACE include)
|
|||||||
target_link_libraries(boost_utility
|
target_link_libraries(boost_utility
|
||||||
INTERFACE
|
INTERFACE
|
||||||
Boost::config
|
Boost::config
|
||||||
Boost::container_hash
|
|
||||||
Boost::core
|
Boost::core
|
||||||
Boost::io
|
Boost::io
|
||||||
Boost::preprocessor
|
Boost::preprocessor
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
#include <boost/io/ostream_put.hpp>
|
#include <boost/io/ostream_put.hpp>
|
||||||
#include <boost/utility/string_view_fwd.hpp>
|
#include <boost/utility/string_view_fwd.hpp>
|
||||||
#include <boost/throw_exception.hpp>
|
#include <boost/throw_exception.hpp>
|
||||||
#include <boost/container_hash/hash_fwd.hpp>
|
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
@ -652,6 +651,9 @@ namespace boost {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Forward declaration of Boost.ContainerHash function
|
||||||
|
template <class It> std::size_t hash_range(It, It);
|
||||||
|
|
||||||
template <class charT, class traits>
|
template <class charT, class traits>
|
||||||
std::size_t hash_value(basic_string_view<charT, traits> s) {
|
std::size_t hash_value(basic_string_view<charT, traits> s) {
|
||||||
return boost::hash_range(s.begin(), s.end());
|
return boost::hash_range(s.begin(), s.end());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user