title: How does C++ exception handling deal with exception derived classes?
body: <p>If I am catching <code>BaseException</code> will this also catch exceptions which derive from <code>BaseException</code>? Does exception handling care about inheritance, etc, or does it only match the <em>exact</em> exception type being caught?</p>
  
  <pre><code>class MyException {
  ...
  };
  class MySpecialException : public MyException {
  ...
  };
  </code></pre>
  
  <hr>
  
  <pre><code>void test()
  {
   try {
   ...
   }
   catch (MyException &amp;e) {
     //will this catch MySpecialException?
   }
  }
  </code></pre>