static thread function access non-static class member in C++
<pre><code>Class Test{
    int value;
    static void* thread_func(void* args){
        value++;
    }
    void newthread(){
        pthread_create(&amp;thread_func,...);
    }
}
</code></pre>

<p>I'm trying to create a thread in <code>Class Test.</code> Therefore compiler forces me to make <code>thread_func</code> static. However I cannot access the non-static member "<code>value</code>" anymore. It says:</p>

<pre><code>invalid use of member 'Class::value' in static member function
</code></pre>

<p>Is there a way around it? </p>
