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

170. Inconsistent definition of traits_type

Section: 27.8.5 [stringstream] Status: TC1 Submitter: Dietmar Kühl Opened: 1999-07-20 Last modified: 2016-02-10

Priority: Not Prioritized

View all issues with TC1 status.

Discussion:

The classes basic_stringstream (27.8.5 [stringstream]), basic_istringstream (27.8.3 [istringstream]), and basic_ostringstream (27.8.4 [ostringstream]) are inconsistent in their definition of the type traits_type: For istringstream, this type is defined, for the other two it is not. This should be consistent.

Proposed resolution:

Proposed resolution:

To the declarations of basic_ostringstream (27.8.4 [ostringstream]) and basic_stringstream (27.8.5 [stringstream]) add:

typedef traits traits_type;