From: Radoslaw Zarzynski Date: Tue, 23 May 2017 13:23:19 +0000 (+0200) Subject: common/sstring: switch to boost::string_view as string_ref is deprecated. X-Git-Tag: v12.1.0~155^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5363643db68247cb033e5fcc19a657f988424312;p=ceph.git common/sstring: switch to boost::string_view as string_ref is deprecated. Signed-off-by: Radoslaw Zarzynski --- 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); } };