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]

Re: [v3] remove non-standard basic_filebuf members, fd, FILEfilebufs


>>>>> "Benjamin" == Benjamin Kosnik <bkoz@redhat.com> writes:

> ! 	      // Allocate internal buffer.
> ! 	      try { _M_buf = new char_type[_M_buf_size]; }
> ! 	      catch(...) 
> ! 		{
> ! 		  delete [] _M_buf;
> ! 		  __throw_exception_again;
> ! 		}

BTW, what is the purpose of this construct?  If new throws, _M_buf will not
have been initialized.

Jason


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