title: Using a member function pointer within a class
body: <p>Given an example class:</p>
  
  <pre><code>class Fred
  {
  public:
  Fred() 
  {
      func = &amp;Fred::fa;
  }
  
  void run()
  {
       int foo, bar;
       *func(foo,bar);
  }
  
  double fa(int x, int y);
  double fb(int x, int y);
  
  private:
  double (Fred::*func)(int x, int y);
  };
  </code></pre>
  
  <p>I get a compiler error at the line calling the member function through the pointer "*func(foo,bar)", saying: "term does not evaluate to a function taking 2 arguments". What am I doing wrong?</p>