This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
2009/12/23 Ed Smith-Rowland:I actually tried it under C++-03 by accident and it didn't like illegal conversion from pointer to unsigned long.
+ const char * str01 = "010101000011";
+ std::bitset<n1> bit01(str01);
Wouldn't this have passed anyway, without the new constructor? I believe the point of the new constructor is to avoid the overhead of creating a std::string, but this test doesn't verify that. How about a type with a conversion to char* so that it would take too many conversions to go via the std::string constructor?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |