Title
basic_iostream doubly initialized
Status
nad
Section
[iostream.cons]
Submitter
Howard Hinnant

Created on 1999-03-06.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

The LWG agreed that the init() function is called twice, but said that this is harmless and so not a defect in the standard.

Date: 2010-10-21.18:28:33

Proposed resolution:

Change 27.6.1.5.1, paragraph 1 to:

-1- Effects Constructs an object of class basic_iostream, assigning initial values to the base classes by calling basic_istream<charT,traits>(sb) (lib.istream).

Date: 1999-03-06.00:00:00

-1- Effects Constructs an object of class basic_iostream, assigning initial values to the base classes by calling basic_istream<charT,traits>(sb) (lib.istream) and basic_ostream<charT,traits>(sb) (lib.ostream)

The called for basic_istream and basic_ostream constructors call init(sb). This means that the basic_iostream's virtual base class is initialized twice.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1646
2010-10-21 18:28:33adminsetmessages: + msg1645
1999-03-06 00:00:00admincreate