title: structure does not name a type in c++
body: <p>I get an issue while return type is structure</p>
  
  <pre><code>Example.h
  
  class Example {
  private:
      typedef struct connection_header {
          string url;
          string method;
      };
  
      static connection_header get_connection_header();
  };
  
  Example.cpp
  connection_header Example::get_connection_header() {
      return NULL;
  }
  </code></pre>
  
  <p>I am getting <code>'connection_header' does not name a type</code></p>
  
  <p>may i know why is this error</p>