title: C++: error: invalid use of qualified-name
body: <p><strong>Update: I think it's fixed. Thanks guys!</strong></p>
  
  <p>I'm getting an error, and I just can't figure it out.
  I have this code:</p>
  
  <pre><code>//A Structure with one variable and a constructor
  struct Structure{
    public:
      int dataMember;
  
      Structure(int param);
  };
  
  //Implemented constructor
  Structure::Structure(int param){
      dataMember = param;
  }
  
  //A class (which I don't plan to instantiate), 
  //that has a static object made from Structure inside of it
  class unInstantiatedClass{
    public:   
      static Structure structObject;
  };
  
  //main(), where I try to put the implementation of the Structure from my class,
  //by calling its constructor
  int main(){
      //error on the line below
      Structure unInstantiatedClass::structObject(5);
  
      return 0;
  }
  </code></pre>
  
  <p>On the line that says "Structure unInstantiatedClass::structObject(5);", I get an error that reads: </p>
  
  <pre><code>error: invalid use of qualified-name 'unInstantiatedClass::structObject'
  </code></pre>
  
  <p>I've googled this error and looked through several forum posts, but everybody's problems seem to be different. I've also tried googling "static struct object inside class" and other related phrases, but haven't found any that I think really relate to my problem.</p>
  
  <p>What I'm trying to do here is:
  Have a class which I don't ever instantiate. and Have, inside that class, a static object, which has a variable that can be set via constructor.</p>
  
  <p>Any help is appreciated. Thanks.</p>