title: c++ argument of type x is incompatible with parameter of type with atexit
body: <p>I get this error when I try to run a function with theatexti() in std. I don't understand the error.</p>
  
  <p>Here is the error:</p>
  
  <pre><code> IntelliSense: argument of type "void (Demo3Main::*)()" is incompatible with parameter of type "void (__cdecl *)()"
  </code></pre>
  
  <p>and here is the code:</p>
  
  <pre><code>Demo3Main::Demo3Main(void)
  : BaseEngine( 50 )
  {
      atexit(RestorScore);
  }
  
  void Demo3Main::RestorScore(){
      std::ofstream outfile("old_score.txt");
      int num1 = 0;
      outfile &lt;&lt; num1;
      outfile.close();
  }
  </code></pre>