Merge pull request #7679 from linuxbox2/rgw-ssconst

sstring.hh: return type from str_len(...) need not be const

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-02-18 21:58:19 +08:00
commit 138d771862

View 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...);
}