QByteArray ba;
ba.resize(3);
ba[0]=0xcf;
ba[1]=0xfe;
ba[2]=0x62;
if(ba[1]==0xfe)//该行有警告!
qDebug("=====1");
警告:ISO
C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
: candidate 1: bool QByteRef::operator==(char) const