This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libstdc++ PATCH : Add missing basic_string<>::push_back
- To: egcs-patches at gcc dot gnu dot org
- Subject: libstdc++ PATCH : Add missing basic_string<>::push_back
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 10 Mar 2000 22:37:58 +0100
- Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
I committed the patchlet below on the mainline. It defines the
missing basic_string<>::push_back. I think it should go on the branch
as well.
-- Gaby
2000-03-10 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
* std/bastring.h (basic_string<>::push_back): Was missing.
Index: bastring.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++/std/bastring.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -p -r1.21 -r1.22
*** bastring.h 1999/12/15 07:43:22 1.21
--- bastring.h 2000/03/10 21:20:08 1.22
*************** public:
*** 213,218 ****
--- 213,221 ----
#endif
{ return replace (iend (), iend (), first, last); }
+ void push_back(charT __c)
+ { append(1, __c); }
+
basic_string& assign (const basic_string& str, size_type pos = 0,
size_type n = npos)
{ return replace (0, npos, str, pos, n); }