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: __gnu_cxx::stdio_filebuf constructor


On Thu, May 06, 2004 at 09:53:02AM -0700, David Carlton wrote:

> When upgrading from GCC 3.2.3 to GCC 3.4.0, I noticed that you'd
> changed the __gnu_cxx::stdio_filebuf constructor to get rid of the
> 'del' argument.  The comment above ~stdio_filebuf(), however, still
> refers to that argument, making it hard for me to figure out if the
> new behavior is the same as if del=true or del=false!  Looking at the
> patch in bug 11691, it looks like the behavior is the same as del=true
> (which is the behavior I want, fortunately), but you might want to
> update the comment in the header file accordingly.

Sorry for the delay in replying.

Yes, the fd ctor now always behaves as though del=true was given.

The attached patch updates the comments in include/ext/stdio_filebuf.h

I'll check it in to 3.4 and mainline shortly.

2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>

	* include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.


> I was also confused by the fact that the only documentation I found
> for this on the GCC web site (admittedly, I didn't look _that_ hard)
> was the doxygen-generated documentation, which is several months old,
> and reflects the old interface.  Perhaps it should be updated to
> reflect the current status of libstdc++?

Yes, those docs are a bit old, it'd be good to have the 3.4 pages up.
Phil?

jon

-- 
http://c2.com/cgi/wiki?NeverExplain

Attachment: libstdc++-stdio_filebuf_comments.patch
Description: Text document


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