title: boost::thread::thread(<unresolved overloaded function type>, int) - templated class member function
body: <p>I was looking for any tips, how to make code below to work and I couldn't find anything. So I wonder if this is even possible...</p>
  
  <p>I need to run a few threads inside my parametrized class. Here is a sample code:</p>
  
  <pre><code>template&lt;typename T, int SIZE, class ThreadingSettings, class CheckingPolicy&gt;
  class MyClass {
    void Run() { boost::thread testThread(WriteValueA, 5); }
    void WriteValueA(const T value) {/* some work here */}
  }
  </code></pre>
  
  <p>But g++ errors:</p>
  
  <pre><code>boost::thread::thread(&lt;unresolved overloaded function type&gt;, int)
  </code></pre>
  
  <p>And this is how I create an object of that class:</p>
  
  <pre><code>typedef MyClass&lt;int, 4, SingleThread, NoCheckingPolicy&gt; int_class;
  int_class a;
  </code></pre>
  
  <p>Any help appreciated.</p>
  
  <p>EDIT:</p>
  
  <p>I'm using NetBeans with cygwin on Win7. I include following files:</p>
  
  <pre><code>#include &lt;boost/thread.hpp&gt;
  #include &lt;boost/date_time.hpp&gt;
  </code></pre>