title: C++ exception specification replacement
body: <p>I have realized, after some reading, that in C++ the exceptions specification is considered a bad thing:</p>
  
  <pre><code>int f() throw(A, B);  // bad because a lot of reasons
  </code></pre>
  
  <p>(some references: <a href="http://www.gotw.ca/publications/mill22.htm" rel="nofollow noreferrer">1</a>, <a href="https://softwareengineering.stackexchange.com/questions/114338/why-are-exception-specifications-bad">2</a>, etc.)</p>
  
  <p>What I have not understood is <em>how</em> to replace it. How can I tell to the <code>f()</code>'s caller that he must catch an exception?</p>