title: How to typedef a pointer to method which returns a pointer the method?
body: <p>Basically I have the following class:</p>
  
  <pre><code>class StateMachine {
  ...
  StateMethod stateA();
  StateMethod stateB();
  ...
  };
  </code></pre>
  
  <p>The methods stateA() and stateB() should be able return pointers to stateA() and stateB().
  How to typedef the StateMethod?</p>