title: How can C++ use continuation-passing style?
body: <p>Suppose in C++ you're doing too many recursive calls on a recursive function and getting a stack overflow error.</p>
  
  <p>How would you rewrite this in a continuation-passing style to avoid the stack overflow?</p>
  
  <p>I'm having a slight difficulty picturing this in C++.</p>