Title
std::bitset does not have any constructor taking a string literal
Status
cd1
Section
[bitset.cons]
Submitter
Thorsten Ottosen

Created on 2008-01-24.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Add to synopsis in [template.bitset]

explicit bitset( const char* str );

Add to synopsis in [bitset.cons]

explicit bitset( const char* str );

Effects: Constructs a bitset as if bitset(string(str)).

Date: 2008-01-24.00:00:00

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.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg3742
2008-01-24 00:00:00admincreate