This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of CD1 status.
Section: 22.9.2.2 [bitset.cons] Status: CD1 Submitter: Thorsten Ottosen Opened: 2008-01-24 Last modified: 2016-01-28
Priority: Not Prioritized
View all other issues in [bitset.cons].
View all issues with CD1 status.
Duplicate of: 116
Discussion:
A small issue with std::bitset
: it does not have any constructor
taking a string literal, which is clumsy and looks like an oversigt when
we tried to enable uniform use of string
and const 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
bitset
as ifbitset(string(str))
.