[PATCH] basic_string::swap - remove redundant template params
Jonathan Wakely
cow@compsoc.man.ac.uk
Fri May 2 13:24:00 GMT 2003
This trivial patch removes the redundant restating of basic_string's
template params in the declaration of the swap() member, to be more
concise and consistent with the rest of the file.
2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
* include/bits/basic_string.h (swap): Remove redundant template
parameters from declaration of non-template member function.
tested i386-unknown-freebsd4.8, ok to commit?
jon
--
"When I use a word, it means just what I choose it to mean
-- neither more nor less."
- Humpty Dumpty
-------------- next part --------------
Index: libstdc++-v3/include/bits/basic_string.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/basic_string.h,v
retrieving revision 1.27
diff -u -p -r1.27 basic_string.h
--- libstdc++-v3/include/bits/basic_string.h 2 Dec 2002 22:15:54 -0000 1.27
+++ libstdc++-v3/include/bits/basic_string.h 22 Apr 2003 20:12:19 -0000
@@ -793,7 +793,7 @@ namespace std
copy(_CharT* __s, size_type __n, size_type __pos = 0) const;
void
- swap(basic_string<_CharT, _Traits, _Alloc>& __s);
+ swap(basic_string& __s);
// String operations:
const _CharT*
More information about the Libstdc++
mailing list