title: Passing member functions to std::thread
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10673585/start-thread-with-member-function">Start thread with member function</a>  </p>
  </blockquote>
  
  
  
  <p>I have recently been playing around with the new std::thread library in c++11 and I came across a problem. When i try to pass a classes function into a new thread, it gives me an error (I dont have the exact error text right now since im away from home)
  I had a class like this</p>
  
  <pre><code>class A
  {
      void FunctA();
      void FunctB();
  
      void run()
      {
          std::thread t(FunctA);
          std::thread r(FunctB);
      }
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>