442. sentry::operator bool() inconsistent signature

Section: 30.7.5.1.3 [ostream::sentry] Status: CD1 Submitter: Vincent Leloup Opened: 2003-11-18 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [ostream::sentry].

View all issues with CD1 status.

Discussion:

In section 30.7.5.1.3 [ostream::sentry] paragraph 4, in description part basic_ostream<charT, traits>::sentry::operator bool() is declared as non const, but in section 27.6.2.3, in synopsis it is declared const.

Proposed resolution:

In section 30.7.5.1.3 [ostream::sentry] paragraph 4, change the declaration of sentry::operator bool() to const.