From 5363643db68247cb033e5fcc19a657f988424312 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 23 May 2017 15:23:19 +0200 Subject: [PATCH] common/sstring: switch to boost::string_view as string_ref is deprecated. Signed-off-by: Radoslaw Zarzynski --- src/common/sstring.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/sstring.hh b/src/common/sstring.hh index 4b75e0976814..3783cc1efac6 100644 --- a/src/common/sstring.hh +++ b/src/common/sstring.hh @@ -27,7 +27,7 @@ #define SSTRING_HH_ #include -#include +#include #include "include/buffer.h" #include "include/denc.h" @@ -527,8 +527,8 @@ public: const char_type& operator[](size_type pos) const { return str()[pos]; } - operator boost::basic_string_ref() const { - return boost::basic_string_ref(str(), size()); + operator boost::basic_string_view() const { + return boost::basic_string_view(str(), size()); } template friend inline string_type to_sstring(T value); @@ -611,7 +611,7 @@ template struct hash> { size_t operator()(const basic_sstring& s) const { using traits_type = std::char_traits; - return std::hash>()(s); + return std::hash>()(s); } }; -- 2.47.3