title: Catching "Stack Overflow" exceptions in recursive C++ functions
body: <p>Is it possible to catch a <code>stack overflow exception</code> in a recursive C++ function? If so, how?</p>
  
  <p>so what will happen in this case</p>
  
  <pre><code>void doWork()
  {
  
       try() {
  
       doWork();    
       }
  
  
       catch( ... )  {
  
       doWork();    
       }
  }  
  </code></pre>
  
  <p>I am not looking for an answer to specific OS. Just in general</p>