title: std::thread <unresolved overloaded function type> error
body: <p>I am trying to spawn a thread from within my class and the thread executes a particular method in my class. The code looks like this:</p>
  
  <pre><code>class ThreadClass{
      int myThread(int arg){
       // do something
      }
  
      void createThread(){
          thread t = thread(myThread,10);
      }
  
  } ;
  </code></pre>
  
  <p>This code on compilation throws an error saying</p>
  
  <pre><code>std::thread::thread(_Callable&amp;&amp;, _Args&amp;&amp; ...) [with _Callable = int (ThreadClass::*)(int), _Args = {int}]
  no known conversion for argument 1 from ‘&lt;unresolved overloaded function type&gt;’ to ‘int (ThreadClass::*&amp;&amp;)(int)’
  </code></pre>
  
  <p>I am not sure what is the actual bug here. Can someone help me with this?</p>
  
  <p>Thanks.</p>