title: Enum Forward Declaration
body: <p>I'm trying to correctly use a forward declaration for enums. Therefore I searched the Internet, but I can't find something that works.</p>
  <p>I'm using this in a header:</p>
  <pre><code>// Forward declaration
  enum myEnumProcessState;
  </code></pre>
  <p>I'm then using this enum in a struct:</p>
  <pre><code>struct myStruct {
      [...]
      myEnumProcessState osState;
      [...]
  };
  </code></pre>
  <p>And in another header:</p>
  <pre><code>enum myEnumProcessState {
      eNotRunning,
      eRunning
  };
  </code></pre>
  <p>I found out that the type should be put in the enum forward declaration to be accepted. However, I don't know which &quot;type&quot; I should put for a Process State. These don't work:</p>
  <pre><code>enum myEnumProcessState : unsigned int;
  enum myEnumProcessState : String;
  </code></pre>
  <p>I wanted to skip the forward declaration, but my <em>struct</em> is crying since it can't find it any more...</p>
  <p>So I'm a bit confused. Is there a solution?</p>