title: How to call static class method from a struct?
body: <p>I've been always avoiding the following in C++ (which I believe is <code>C++03</code> used in VS 2008) but now I'm curious if it's possible to do this? Let me explain it with the code.</p>
  
  <pre><code>//Definitions.h header file
  //INFO: This header file is included before CMyClass definition because
  //      in contains struct definitions used in that class
  
  struct MY_STRUCT{
      void MyMethod()
      {
          //How can I call this static method?
          int result = CMyClass::StaticMethod();
      }
  };
  </code></pre>
  
  <p>then:</p>
  
  <pre><code>//myclass.h header file
  #include "Definitions.h"
  
  class CMyClass
  {
  public:
      static int StaticMethod();
  private:
      MY_STRUCT myStruct;
  };
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>//myclass.cpp implementation file
  
  int CMyClass::StaticMethod()
  {
      //Do work
      return 1;
  }
  </code></pre>