170. Inconsistent definition of traits_type

Section: 30.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.


The classes basic_stringstream (30.8.5 [stringstream]), basic_istringstream (30.8.3 [istringstream]), and basic_ostringstream (30.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 (30.8.4 [ostringstream]) and basic_stringstream (30.8.5 [stringstream]) add:

typedef traits traits_type;