From: Matt Benjamin Date: Wed, 17 Feb 2016 16:16:19 +0000 (-0500) Subject: sstring.hh: return type from str_len(...) need not be const X-Git-Tag: v10.1.0~367^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F7679%2Fhead;p=ceph.git sstring.hh: return type from str_len(...) need not be const Removes a compile warning. Signed-off-by: Matt Benjamin --- diff --git a/src/common/sstring.hh b/src/common/sstring.hh index b0f7a12c7cd5..8d2c92cc4de9 100644 --- a/src/common/sstring.hh +++ b/src/common/sstring.hh @@ -580,7 +580,7 @@ size_type str_len(const basic_sstring& s) { retu template static inline -const size_t str_len(const First& first, const Second& second, const Tail&... tail) { +size_t str_len(const First& first, const Second& second, const Tail&... tail) { return str_len(first) + str_len(second, tail...); }