title: Assign value in main to a class static variable
body: <p>I got the next code:</p>
  <pre><code>class Pipeline{
  public:
    static Pipeline foo;
    bool hello(){
    ----
    }
  }
  
  bool bar(){
    Pipeline::foo::hello();
  }
  
  int main(int argc, char *argv[]) {
    // Some important process that must be running before creating Pipeline()
    Pipeline Pipeline::foo = Pipeline();
    bar();
  }
  </code></pre>
  <p>I am trying to define an object as a static value. However, I found out that the static variable cannot be defined inside the main method so I have to do it outside, as in the example above.</p>
  <p>How can I restructure the code to create the Pipeline object in the main(not to be created by defining the static variable outside of the main)?</p>