[v3] remove non-standard basic_filebuf members, fd, FILE filebufs
Nathan Myers
ncm-nospam@cantrip.org
Mon Apr 29 21:56:00 GMT 2002
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
More information about the Libstdc++
mailing list