Thomas W. Carley wrote:
I agree ... the way you used const originally defined a pointer to a
function that returned a const int ... not a const pointer.

and

Richard Willis wrote:
> Hi Todd,
> Like your neat example :-)  Try this change:
>
> After (note the extra const following the "*"):
> const int (* const MyFunctions[])(int) = {

Ah ha! Thank you both very much. It had never crossed my mind that I'd have to place the const after the * and before the label. Wouldn't have figured that one out without a little prodding in the correct direction. It does indeed work as expected now.

Todd

Reply via email to