title: Accessing member function from member function array
body: <p>I have grouped several member functions into an array. How do I access a function from the array? I am getting 'error C2064: term does not evaluate to a function taking 0 arguments.' See below.</p>
  
  <pre class="lang-c prettyprint-override"><code>class A
  {
  public:
  
      //Constructor
      A()
      {
          //Fill function array
          ClipFunction[0] = &amp;A::ClipTop;
          ClipFunction[1] = &amp;A::ClipBottom;
          ClipFunction[2] = &amp;A::ClipLeft;
          ClipFunction[3] = &amp;A::ClipRight;
      }
  
      //Declare array
      typedef void (A::*ClipFunction_ptr) ();
      ClipFunction_ptr ClipFunction[4];
  
      //Clipping functions
      void ClipTop();
      void ClipBottom();
      void ClipLeft();
      void ClipRight();
  
      //Start clipping process
      void StartClip();
  
  };
  
  //Define clipping functions
  void A::ClipTop() {}
  void A::ClipBottom() {}
  void A::ClipLeft() {}
  void A::ClipRight() {}
  
  //Define A::StartClip()
  void A::StartClip()
  {
      //Run through all functions in the array
      for (unsigned int i = 0; i &lt; 4; i++)
      {
          ClipFunction[i](); //ERROR. How do I access ClipFunction[i] ???
      }
  
  }   
  </code></pre>