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, FILE filebufs


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


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