]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
sstring.hh: return type from str_len(...) need not be const 7679/head
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 17 Feb 2016 16:16:19 +0000 (11:16 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 17 Feb 2016 16:17:22 +0000 (11:17 -0500)
Removes a compile warning.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/common/sstring.hh

index b0f7a12c7cd5b79fda6d9b8af71c1c0d0f3ee97b..8d2c92cc4de9fbb6798d8fdbeaad8a1c59817e9f 100644 (file)
@@ -580,7 +580,7 @@ size_type str_len(const basic_sstring<char_type, size_type, max_size>& s) { retu
 
 template <typename First, typename Second, typename... Tail>
 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...);
 }