[RFC/Patch] What about using seekoff(-1, ...) for unbuffered underflow?
Benjamin Kosnik
bkoz@redhat.com
Fri Jun 6 21:45:00 GMT 2003
>Seems like a possibility...
Indeed, looks great, and restores the _M_buf_size placement that
everybody wants... if it passes make check then feel free to check this in.
>However, I agree _completely_ with your concerns (I hadn't considered
>locales, damn!) and also, let me add that, even if we don't care much,
>this additional use of the single pback char we have available implies
>that (both in yours and mine solution) after any sgetc() the pback area
>is full! Therefore no chars can be pback at all upon request!
>This seems bad.
>
>What to do?
The locale bit actually doesn't apply at the moment, so scratch that
line of argumentation.
I think pbackfail will still work correctly, even if the pback buffer is
full. So, I don't think this is an issue.
best,
benjamin
More information about the Libstdc++
mailing list