We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13d5192 commit e4d0f0fCopy full SHA for e4d0f0f
include/mqtt/string_view.hpp
@@ -40,6 +40,16 @@ using string_view = boost::string_view;
40
template<class CharT, class Traits = std::char_traits<CharT> >
41
using basic_string_view = boost::basic_string_view<CharT, Traits>;
42
43
+#if BOOST_VERSION < 106900
44
+
45
+#include <boost/container_hash/hash_fwd.hpp>
46
47
+template <class charT, class traits>
48
+std::size_t hash_value(basic_string_view<charT, traits> s) {
49
+ return boost::hash_range(s.begin(), s.end());
50
+}
51
+#endif // BOOST_VERSION < 106900
52
53
} // namespace MQTT_NS
54
55
#else // BOOST_VERSION >= 106100
0 commit comments