How can I generate multiple function pointers from a parameterized base function?
<p>I have a base function </p>

<p><code>int base(const int i, const double &amp;x)</code></p>

<p>In this function, I consider <code>i</code> to be a "parameter" (which can take predefined values from 0 to N-1), while <code>x</code> I consider to be the actual "argument" (which can take any arbitrary value).</p>

<p>What I need is to create an array of function pointers <code>int (*pointers[N])(const double &amp;x)</code>.  Each member of the array corresponds to a different value for the parameter <code>i</code> and thus each call <code>pointers[n](x)</code> should be equivalent to a call <code>base(n, x)</code>.</p>

<p>Is there a way to achieve this functionality?</p>

<p>I have been trying to educate myself about functors (is this a way to go?) and recently also looked into <code>std::bind</code> but my understanding is that it only works with C++11 (which I currently cannot use).</p>

<p>Any advice or code snippet would be really helpful.  Thanks!</p>
