The std::bitset has several constructors. One of them (3) has the form:
template< class CharT, class Traits, class Alloc > explicit bitset( const std::basic_string<CharT,Traits,Alloc>& str, typename std::basic_string<CharT,Traits,Alloc>::size_type pos = 0, typename std::basic_string<CharT,Traits,Alloc>::size_type n = std::basic_string<CharT,Traits,Alloc>::npos, CharT zero = CharT('0'), CharT one = CharT('1')); Other (4):
template< class CharT > explicit bitset( const CharT* str, typename std::basic_string<CharT>::size_type n = std::basic_string<CharT>::npos, CharT zero = CharT('0'), CharT one = CharT('1')); Why do you need a constructor (4), when there is (3)?
And in particular, why use CharT* instead of std::basic_string ?
Similar to (3), but uses a CharT* instead of a std::basic_string- pavelconst char*gcc.1065356.n8.nabble.com/… specializations are for - user2354841std::string? Or the crux of the matter in something else? - AnT