AND trouble (c++, std::bitset)
Posted: Wed Jun 06, 2007 2:28 pm
when doing a conditional &:
i get the following error:
i understand nothing of this.
Code: Select all
std::bitset<9> a = 7;
std::bitset<9> b = 6;
if(a & b)
or
if(a & b == b) // which is what i really want
could not convert `std::operator& [with unsigned int _Nb = 9u](((const std::bitset<9u>&)((const std::bitset<9u>*)((+(((unsigned int)p) * 4u)) + ((std::bitset<9u>*)((std::bitset<9u> (*)[2])this))))), ((const std::bitset<9u>&)((const std::bitset<9u>*)((((std::bitset<9u>*)(((unsigned int)i) * 4u)) + ((std::bitset<9u>*)((std::bitset<9u> (*)[8])((C*)this)))) + 8u))))' to `bool'
i understand nothing of this.