title: Referring to static member of a class result in "not a static member of class"
body: <p>I want to create a class were classes are derived from when they use a certain feature of the program that has to be initialized only once.<br>
  I created the class with a static bool member, and a default constructor. The default constructor checks the static member and runs the initialization if needed:</p>
  
  <pre><code>class WireUser {
  public:
      static bool wireIntialized;
      WireUser::WireUser();
  };
  
  bool WireUser::wireInitialized = false;
  
  WireUser::WireUser() {
      if (!wireInitialized) {
          Wire.begin();
          wireInitialized = true;
      }
  };
  </code></pre>
  
  <p>When i try to compile this i get the following error:</p>
  
  <blockquote>
  <pre><code> error: 'bool WireUser::wireInitialized' is not a static member of 'class WireUser'
   bool WireUser::wireInitialized = false;
  </code></pre>
  </blockquote>
  
  <p>If i remove the line were the member is initialized as false, the same errors occurs on the line containing <code>if (!wireInitialized) {</code> </p>
  
  <p>I don't understand what i'm doing wrong.</p>