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