hi there
i m trying to convert (viod *) data to (unsigned char) using
reinterpret_cast as following
void *aData; // some data already provided
unsigned char c = reinterpret_cast<unsingned char>(aData);
and the gcc is giving me the following error
-------------------------------------------------
reinterpret_cast from
`void*' to `unsigned char' loses precision
-------------------------------------------------
is this what i m doing is valid Standard C++ ???
I have kept settings to treat all warning as Errors, so this is giving me
error
any suggestions ??