title: C++ Pointer to a function which takes an instance of a templated class as argument
body: <p>I have trouble compiling a class, which has function pointers as member variables. The pointers are to functions which take an instance of a class as argument.</p>
  
  <p>Like</p>
  
  <pre><code>template&lt;class T, int N&gt;
  double (*f)(Vector&lt;T,N&gt; v);
  </code></pre>
  
  <p>I get "error: data member 'f' cannot be a member template" Compiler is gcc 4.2.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Before using templates I just had</p>
  
  <pre><code>double (*f)(Vector v);
  </code></pre>
  
  <p>This also works</p>
  
  <pre><code>double (*f)(Vector&lt;double,2&gt; v)
  </code></pre>
  
  <p>But I would like to have a function pointer for a function which takes a generic Vector as argument..</p>