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

4. basic_string size_type and difference_type should be implementation defined

Section: 23.4.3 [basic.string] Status: NAD Submitter: Beman Dawes Opened: 1997-11-16 Last modified: 2016-08-09

Priority: Not Prioritized

View other active issues in [basic.string].

View all other issues in [basic.string].

View all issues with NAD status.


In Morristown we changed the size_type and difference_type typedefs for all the other containers to implementation defined with a reference to 24.2 [container.requirements]. This should probably also have been done for strings.


Not a defect. [Originally classified as a defect, later reclassified.] basic_string, unlike the other standard library template containers, is severely constrained by its use of char_traits. Those types are dictated by the traits class, and are far from implementation defined.