157. Meaningless error handling for pword() and iword()

Section: [ios.base.storage] Status: Dup Submitter: Dietmar Kühl Opened: 1999-07-20 Last modified: 2016-01-28 10:19:27 UTC

Priority: Not Prioritized

View all other issues in [ios.base.storage].

View all issues with Dup status.

Duplicate of: 41


According to paragraphs 2 and 4 of [ios.base.storage], the functions iword() and pword() "set the badbit (which might throw an exception)" on failure. ... but what does it mean for ios_base to set the badbit? The state facilities of the IOStream library are defined in basic_ios, a derived class! It would be possible to attempt a down cast but then it would be necessary to know the character type used...