title: Error "expression must have (pointer-to-) function type" C++
body: <p>So, I've got this code, and I'm trying to call a method that's been stored into an array which is inside of a structure "Menu", but I'm getting this "expression must have (pointer-to-) function type," error when trying to call the function.</p>
  
  <p>Here's my array, it's initialized later, if that part's needed, please let me know.</p>
  
  <pre><code>void(       Menu::*_Opt_Function[MAX_SUB][MAX_OPT])(int);
  </code></pre>
  
  <p>And here is calling the function, within the structure, where the error is occurring.</p>
  
  <pre><code>void CallFunction()
      {
          ((void(Menu::*)(int))_Opt_Function[CurrentMenu][Current_Opt[CurrentMenu]])(0);
      }
  </code></pre>