This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] remove non-standard basic_filebuf members, fd, FILE filebufs
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 30 Apr 2002 04:56:54 +0000
- Subject: Re: [v3] remove non-standard basic_filebuf members, fd, FILE filebufs
- References: <200204270520.g3R5KRS26509@fillmore.constant.com>
On Fri, Apr 26, 2002 at 10:20:27PM -0700, Benjamin Kosnik wrote:
>
> This patch is posted for discussion only. I'm curious to see what
> other people think.
>
> In std::basic_filebuf, there's a non-standard constructor that takes a
> FILE* as an argument. The non-standard constructor has, in previous
> incarnations, taken a file descriptor as an argument. It also has an
> unmangled, non-standard member function fd().
>
> This patch removes both items from basic_filebuf, the assorted hacks
> to streamline allocations for unbuffered streams, and provides two new
> derived filebufs, one taking a FILE*, the other a file
> descriptor. Both seem to be useful, both seem to have uses, and there
> have been requests for both on a regular basis. Slight modifications
> to __basic_file were necessary.
I like this idea a lot. It would be very convenient for me personally
if it could be in the 3.1 branch.
Nathan Myers
ncm at cantrip dot org