285. minor editorial errors in fstream ctors

Section: 30.9.3.1 [ifstream.cons] Status: CD1 Submitter: Martin Sebor Opened: 2000-12-31 Last modified: 2016-02-10

Priority: Not Prioritized

View all issues with CD1 status.

Discussion:

30.9.3.1 [ifstream.cons], p2, 30.9.4.1 [ofstream.cons], p2, and 30.9.5.1 [fstream.cons], p2 say about the effects of each constructor:

... If that function returns a null pointer, calls setstate(failbit) (which may throw ios_base::failure).

The parenthetical note doesn't apply since the ctors cannot throw an exception due to the requirement in 30.5.5.2 [basic.ios.cons], p3 that exceptions() be initialized to ios_base::goodbit.

Proposed resolution:

Strike the parenthetical note from the Effects clause in each of the paragraphs mentioned above.