simplify string operator+= for T
This commit is contained in:
parent
d9bd0f8380
commit
5189bab1af
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue