This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Move streambuf::_M_mode to filebuf and stringbuf
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Sun, 29 Jun 2003 09:55:20 -0700
- Subject: Re: [Patch] Move streambuf::_M_mode to filebuf and stringbuf
- References: <3EFF15D8.10507@unitus.it>
On Sun, Jun 29, 2003 at 06:37:44PM +0200, Paolo Carlini wrote:
> the below, as per Nathan's private indication, moves streambuf::_M_mode
> to its proper places (where it's actually used, that is).
Thanks Paolo.
> @@ -214,6 +221,7 @@
> {
> this->close();
> _M_buf_size = 0;
> + _M_mode = ios_base::openmode(0);
> _M_last_overflowed = false;
> }
One question -- I know you just copied what was here, but -- why
are we re-initializing data members in the destructor? Let's
trash all three assignments.
Nathan Myers
ncm-nospam@cantrip.org