Hi to all,
I’m successfully compiling this code snippet on QNX 6.2.1 PE
//---------------------------------------------------------------------------
#include
#include
using namespace std;
//--------------------------------------------------------------------------
int main(int argc, char* argv[])
{
bitset<32> bitSet32(14);
unsigned long storedValue=bitSet32.to_ulong();
cout << "Bitset stored value is " << storedValue << endl;
getchar();
}
//---------------------------------------------------------------------------
with
QCC -g -w8 -c main.cpp -o main.o
but I obtain
/usr/include/cpp/bitset: In method `long unsigned int std::bitset<32>::to_ulong(
) const’:
./src/main.cpp:11: instantiated from here
/usr/include/cpp/bitset:224: warning: comparison between signed and unsigned
How can I eliminate this warning?
Thanks in advance,
Gianluca