Movatterモバイル変換


[0]ホーム

URL:



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

285. minor editorial errors in fstream ctors

Section: 31.10.4.2[ifstream.cons]Status:CD1Submitter: Martin SeborOpened: 2000-12-31Last modified: 2016-01-28

Priority:Not Prioritized

View all issues withCD1 status.

Discussion:

31.10.4.2[ifstream.cons], p2, 31.10.5.2[ofstream.cons], p2, and31.10.6.2[fstream.cons], p2 say about the effects of each constructor:

... If that function returns a null pointer, callssetstate(failbit) (which may throwios_base::failure).

The parenthetical note doesn't apply since the ctors cannot throw anexception due to the requirement in 31.5.4.2[basic.ios.cons], p3 thatexceptions() be initialized toios_base::goodbit.

Proposed resolution:

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


[8]ページ先頭

©2009-2026 Movatter.jp