This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of CD1 status.

442. sentry::operator bool() inconsistent signature

Section: [ostream::sentry] Status: CD1 Submitter: Vincent Leloup Opened: 2003-11-18 Last modified: 2017-02-03

Priority: Not Prioritized

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

View all issues with CD1 status.


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

Proposed resolution:

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