This is the mail archive of the libstdc++@sourceware.cygnus.com 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]

basic_stringbuf<>::sync


There is a little mistake in my previous posting in the sync function, sorry!
Since the most of the readers are currently sleeping I have the time
to modify my mistake.

      virtual int 
      sync()
      {
        char_type* __first = const_cast<char_type*>(_M_str.data()); 
        char_type*  __last = const_cast<char_type*>(_M_str.data() +
                                                    _M_str.size());

        if (_M_mode & ios_base::in)
          setg(__first, __first, __last);
        if (_M_mode & ios_base::out)
          setp(__first, __last);
        return 0;
      }


Ryszard Kabatek
Martin-Luther University Halle-Wittenberg, Department of Physical Chemistry
Geusaer Str. 88, 06217 Merseburg, Germany
Tel. +49 3461 46 2487 (2466) Fax. +49 3461 46 2129


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