title: member cannot be defined in the current scope
body: <p>I am currently doing a checker for the top level domains of email addresses. In order to check, I am comparing it to a list that is a text file. I want to import the list into a static map container. However, when I try to instantiate it, it says that it cannot be defined in the current scope. Why is that?</p>
  
  <p>This is some my header file:</p>
  
  <pre><code>    class TldPart {
      public:
          static void LoadTlds();
      private:
          static map&lt;string,bool&gt; Tld;
      }
  </code></pre>
  
  <p>Here is the implementation in the cpp:</p>
  
  <pre><code>    void TldPart::LoadTlds()
      {
          map&lt;string,bool&gt; Tld;
          ...
      }
  </code></pre>
  
  <p>It is telling me that ValidTld cannot be defined in the LoadTlds function.</p>