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: RFC: basic_filebuf supporting non-modal I/O without seekpos


On 09/19/2010 09:40 PM, Paolo Carlini wrote:
> The plan, since we now agree about the issue above, would be having an
> unified patch. Note, the complete patch would incorporate an actual
> testcase from 45628 (you can take mine, which you can find attached to
> the PR, part of my small draft), and also a testcase actually testing
> the new possibility to switch without seek in the middle, something very
> simple, just reading and then writing, and closing or seeking to zero,
> and checking that everything went well.
>   
Something like the first half of 27_io/basic_filebuf/seekoff/char/4.cc
(and the wchar_t counterpart) without the seekoff(0, cur) in the middle
would do. I would suggest testing single char sgetc / sputc too however.

Paolo.


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