[PATCH] New stream buffer for cin, cout etc.

Benjamin Kosnik bkoz@redhat.com
Sat May 10 20:56:00 GMT 2003


Let's start here. I think __basic_file is in an indeterminate/unsettled
state but I'd like to punt on that for the time being. That the the
related specialization/inlining issues in the unbuffered filebuf can be
improved. On the whole though, this is a great step, thanks!

>The only thing I'm aware of that is still missing is seeking on the
>wide streams. It should be possible to implement seekpos and seekoff
>with off == 0 using fgetpos, fsetpos and fseek, but doing so requires
>a way to convert between fpos_t and streampos.

Yes, this is a later patch. There needs to be some kind of
correspondance between C's fpos_t (__c_streampos) and std::fpos<T>.
Perhaps a member and access operator should be added? There is already a
basic_streambuf::_M_pos that was added with this intention, which
probably should be moved to basic_filebuf. 

best,
benjamin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.20030510.gz
Type: application/x-gzip
Size: 18598 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030510/42a8ad9c/attachment.bin>


More information about the Libstdc++ mailing list