simplify string operator+= for T

master
Daniel Kolesa 2016-05-22 15:31:11 +01:00
parent d9bd0f8380
commit 5189bab1af
1 changed files with 1 additions and 4 deletions

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) {