What is wrong with this code?
set<string> nk ;
bitset<3> bs1(string("100"));
nk.insert(bs1.to_string());
error: there is no corresponding function to call on `std :: bitset <3u> :: to_string () '
why?!
UPDATE:
Tansk, it works. But why does this work ?: D
source
share