This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]