title: forward declare static function c++
body: <p>I want to forward declare a static member function of a class in another file. What I WANT to do looks like this:</p>
  
  <p>BigMassiveHeader.h:</p>
  
  <pre><code>class foo
  {
      static void init_foos();
  }
  </code></pre>
  
  <p>Main.cpp:</p>
  
  <pre><code>class foo;
  void foo::init_foos();
  int main(char** argv, int argc)
  {
      foo::init_foos()
  }
  </code></pre>
  
  <p>This fails out with "error C2027: use of undefined type 'foo'"</p>
  
  <p>Is there a way to accomplish what I want to do with out making init_foos a free function, or including BigMassiveHeader.h? (BigMassiveHeader.h is noticeably effecting compile time, and is included everywhere.)</p>