pointers to template functions
<p>so i've gotten comfortable storing template function pointers in map containers now, mainly as a method of templating a function that returns a new instance of the templated object and storing that function pointer in a map to be called when given a corresponding string index (that was a mouthful). my question lies with using the template function pointers. the only reason this seems to work is because neither the return type or the parameters are of the type template parameter. It looks like this:</p>

<pre><code>template&lt;class T&gt;
base * createT() {return new T;}
</code></pre>

<p>where T should be a class derived from base. now i can make a function pointer that works fine</p>

<pre><code>base*(*funcptr)() = &amp;createT&lt;derived&gt;;
</code></pre>

<p>but let's say i wanted to setup something like this:</p>

<pre><code>template &lt;class returnType, class T&gt;
returnType * createT() { return new T;}
</code></pre>

<p>what would the declaration of a function pointer look like for this function?</p>
