title: enum does not name a type
body: <p>I have a class <code>Response</code> say. </p>
  
  <pre><code>#include "NetworkResponse.h"
  
  
  class NetworkResponse;
  
  class Response {
  public:
      Response();
      virtual ~Response();
      Response(NetworkResponse * networkResponse);
  
      NetworkResponses responseCode; // This is an enum and here I get an error
  
  
  };
  
  #endif  
  </code></pre>
  
  <p><code>NetworkResponses</code> is actually an enum defined in the <code>"NetworkResponse.h"</code>. Like this:</p>
  
  <pre><code>// "NetworkResponse.h":
  #include "Response.h"
  
  enum NetworkResponses {
      Success = 1,
      UserAlreadyExists = 2,
      InvalidUsername = 3,
          SecurityError = 4,
          UnknownError = 5
  
  };
  class Response;
  
  
  class NetworkResponse {
  
  public:
      NetworkResponse();
      virtual ~NetworkResponse();
  
  };
  </code></pre>
  
  <p>But I get an error: : "<em>NetworkResponses</em> does not name a type" in the <code>Response</code> class definition, when I try to compile. Can someone please help?? I think I am missing something simple. I think I was able to use this enum in other classes successfully, don't know what's wrong in this case... Thanks.</p>