simplify string operator+= for T

This commit is contained in:
q66 2016-05-22 15:31:11 +01:00
parent d9bd0f8380
commit 5189bab1af

View file

@ -528,10 +528,7 @@ public:
return append(r);
}
StringBase &operator+=(T c) {
reserve(p_len + 1);
p_buf.first()[p_len++] = c;
p_buf.first()[p_len] = '\0';
return *this;
return append(1, c);
}
template<typename R>
StringBase &operator+=(const R &v) {