Movatterモバイル変換


[0]ホーム

URL:



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

53. Basic_ios destructor unspecified

Section: 31.5.4.2[basic.ios.cons]Status:TC1Submitter: Matt AusternOpened: 1998-06-23Last modified: 2016-01-28

Priority:Not Prioritized

View all otherissues in [basic.ios.cons].

View all issues withTC1 status.

Discussion:

There's nothing in 27.4.4 saying what basic_ios's destructor does.The important question is whether basic_ios::~basic_ios() destroysrdbuf().

Proposed resolution:

Add after 31.5.4.2[basic.ios.cons] paragraph 2:

virtual ~basic_ios();

Notes: The destructor does not destroyrdbuf().

Rationale:

The LWG reviewed the additional question of whether or notrdbuf(0) may setbadbit. The answer isclearly yes; it may be set viaclear(). See 31.5.4.3[basic.ios.members], paragraph 6. This issue was reviewed at lengthby the LWG, which removed from the original proposed resolution afootnote which incorrectly said "rdbuf(0) does not setbadbit".


[8]ページ先頭

©2009-2026 Movatter.jp