[RFC] DR 60 about tellg, seekg not implemented?

Paolo Carlini pcarlini@suse.de
Sat May 29 11:06:00 GMT 2004


Paolo Carlini wrote:

> it looks like we are not fully implementing the resolution of DR 60 [TC]:
> tellg and seekg do not construct a sentry object.

Hi again, hi Benjamin.

While investigating this issue, I noticed that libstdc++/8348 is exactly
about it: we were doing the right thing (in my understanding) but we
removed the sentry in order to answer libstdc++/8348.

Therefore, adding back the sentry means, basically, reverting the commit
for 8348: see attached draft patch.

In my opinion, the resolution of DR 60 is pretty clear: tellg and seekg
require a sentry:

    http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#60

(about paragraphs 36-38 of 27.6.1.3)

In case we agree that this is the way to go, I would also provide tests
checking that a sentry is actually present, besides amending the existing
ones.

Paolo.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_sentry
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040529/29309cb2/attachment.ksh>


More information about the Libstdc++ mailing list