aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/bits/basic_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/bits/basic_string.h')
-rw-r--r--libstdc++-v3/include/bits/basic_string.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/basic_string.h b/libstdc++-v3/include/bits/basic_string.h
index f36612df1dc..eb44dff857c 100644
--- a/libstdc++-v3/include/bits/basic_string.h
+++ b/libstdc++-v3/include/bits/basic_string.h
@@ -414,7 +414,8 @@ namespace std
* data.
*/
void
- reserve(size_type __res_arg = 0);
+ reserve(size_type __res_arg = 0)
+ { this->_M_reserve(__res_arg); }
/**
* Erases the string, making it empty.
@@ -623,7 +624,11 @@ namespace std
* @return Reference to this string.
*/
basic_string&
- assign(const basic_string& __str);
+ assign(const basic_string& __str)
+ {
+ this->_M_assign(__str);
+ return *this;
+ }
/**
* @brief Set value to a substring of a string.