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: [PATCH] New stream buffer for cin, cout etc.


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

Attachment: p.20030510.gz
Description: GNU Zip compressed data


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