This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofCD1 status.
Section: 22.9.2.2[bitset.cons]Status:CD1Submitter: Thorsten OttosenOpened: 2008-01-24Last modified: 2016-01-28
Priority:Not Prioritized
View all otherissues in [bitset.cons].
View all issues withCD1 status.
Duplicate of:116
Discussion:
A small issue withstd::bitset: it does not have any constructortaking a string literal, which is clumsy and looks like an oversigt whenwe tried to enable uniform use ofstring andconst char* in the library.
Suggestion: Add
explicit bitset( const char* str );
to std::bitset.
Proposed resolution:
Add to synopsis in 22.9.2[template.bitset]
explicit bitset( const char* str );
Add to synopsis in 22.9.2.2[bitset.cons]
explicit bitset( const char* str );Effects: Constructs a
bitsetas ifbitset(string(str)).