bitset 使用问题
typedef std::bitset<16> Packet;
func()
{
Packet packet;
}
编译时,产生C6326警告:可能对两个常数进行比较,
求问怎样修改能去掉这个警告
找到警告产生的代码行,是bitset文件中的下面红色显示行
void _Trim()
{
// clear any trailing bits in last word
if (_Bits % _Bitsperword != 0)
_Array[_Words] &= ((_Ty)1 << _Bits % _Bitsperword) - 1;
}