This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[Patch] Make stringbuf::_M_sync non virtual
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: libstdc++ at gcc dot gnu dot org
- Cc: bkoz <bkoz at redhat dot com>
- Date: Thu, 19 Jun 2003 15:17:10 +0200
- Subject: [Patch] Make stringbuf::_M_sync non virtual
Hi,
I can't find a sound reason to have _M_sync virtual, thus making,
in principle, the inlining more difficult: in fact its cousin
filebuf::_M_set_buffer isn't.
Tested x86-linux, ok?
Paolo.
////////
2003-06-19 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_sstream.h (_M_sync): Make non virtual.
diff -urN libstdc++-v3-orig/include/std/std_sstream.h libstdc++-v3/include/std/std_sstream.h
--- libstdc++-v3-orig/include/std/std_sstream.h 2003-06-18 21:13:18.000000000 +0200
+++ libstdc++-v3/include/std/std_sstream.h 2003-06-19 15:02:20.000000000 +0200
@@ -245,7 +245,7 @@
* @doctodo
* @endif
*/
- virtual void
+ void
_M_sync(char_type* __base, __size_type __i, __size_type __o)
{
const bool __testin = this->_M_mode & ios_base::in;