Title
Meaningless error handling for pword() and iword()
Status
dup
Section
[ios.base.storage]
Submitter
Dietmar Kühl

Created on 1999-07-20.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

Duplicate: 41

Date: 1999-07-20.00:00:00

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...

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1709
1999-07-20 00:00:00admincreate