title: Invalid conversion in pthread_create c++
body: <p>I have a class named <strong>qwerty</strong> and a function called <strong>compute_ans</strong> inside it which takes a void pointer and returns a void pointer. Now when I try to compile, the following statement throws an error</p>
  
  <pre><code>pthread_create (thread_a, NULL, compute_ans, (void*) struct_left);
  </code></pre>
  
  <p>The definition of the function is <strong>void* compute_ans (void* struct_input)</strong></p>
  
  <p>The error is </p>
  
  <blockquote>
    <p>cannot convert ‘qwerty::compute_ans’ from type ‘void* (qwerty::)(void*)’ to type ‘void* (<em>)(void</em>)’*</p>
  </blockquote>