C++ Calling Static Function pointer with Predefined parameters
<p>I have a rather unusual problem... we are tasked with mapping a series of hexadecimal values to function pointers.  However, I want to be able to call the function with already predefined parameters.  Here is a segment of code that I am trying to get to work:</p>

<pre><code>map&lt;short, void(*)(MyClass, MyClass)&gt; mapping = create_map();


map&lt;short, void(*)(MyClass, MyClass)&gt; create_map()
{
    map&lt;short, void(*)(MyClass, MyClass)&gt;&gt; m;
    m[1] = &amp;function(new MyClass(), new MyClass());
    return m;
}
</code></pre>

<p>However, it will only let me put function without parameters into the mapping.  How do I store this setup and call it later?</p>
