Enum:
enum DataStatus
{
DataNotAvailable = -1,
DataLocallyAvailable = 0,
DataExternallyAvailable = 1,
};
Function definition:
GetDataStatusByFrame(UINT PI_uiRequestFrameNo, DataStatus *PO_peDataStatus);
Comparsion:
IDataHandler::DataStatus* pinnedPointer = new IDataHandler::DataStatus();
GetDataStatusByFrame(1, pinnedPointer);
if (pinnedPointer == IDataHandler::DataStatus::DataNotAvailable) // 'cannot convert' exception
{
// ...
}
Question:
How can i compare these types or at least cast them to the same datatype?