templated function pointer, is this possible?
<pre><code>template&lt;typename T&gt;
std::vector&lt;unsigned&gt; 
Traverse
(
unsigned    start_node, 

std::priority_queue
&lt; 
    std::pair&lt; unsigned, unsigned &gt;, 
    std::vector&lt; std::pair&lt;unsigned, unsigned&gt; &gt;, 
    bool(*T)(const unsigned&amp;, const unsigned&amp;) 
&gt; &amp;pQueue
) const;
</code></pre>

<p>The above code basically doesnt compile. I think its syntax error with the following line:</p>

<pre><code>    bool(*T)(const unsigned&amp;, const unsigned&amp;) 
</code></pre>

<p>What is the correct syntax?</p>

<p>Thanks.</p>

<p>edit:
@ James, 
This is the declaration of a const class member function template.
The function takes the following arguments</p>

<p>1) an unsigned int</p>

<p>2) a priority_queue, sorted in an arbitrary manner specified by the client</p>

<p>The function returns a vector of unsigned ints.</p>
