Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51927 - sandbox/committee/rvalue_ref
From: dgregor_at_[hidden]
Date: 2009-03-23 00:47:11


Author: dgregor
Date: 2009-03-23 00:47:07 EDT (Mon, 23 Mar 2009)
New Revision: 51927
URL: http://svn.boost.org/trac/boost/changeset/51927

Log:
Deprecate exception specifciations
Text files modified:
   sandbox/committee/rvalue_ref/rvalue-ref-exception-safety.html | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: sandbox/committee/rvalue_ref/rvalue-ref-exception-safety.html
==============================================================================
--- sandbox/committee/rvalue_ref/rvalue-ref-exception-safety.html (original)
+++ sandbox/committee/rvalue_ref/rvalue-ref-exception-safety.html 2009-03-23 00:47:07 EDT (Mon, 23 Mar 2009)
@@ -601,6 +601,11 @@
 
 <h3 id="exception-spec">Deprecate Exception Specifications</h3>
 
+<p>Exception specifications have not proven to be as useful as we had hoped. Their lack of static checking has limited their usability and confused users, and they provide few benefits for compilers. Moreover, exception specifications aren't useful in generic code, where functions need to know whether an exception can be thrown or not but don't know (or care) what kind of exceptions can be thrown. For these and other reasons, exception specifications are discouraged [1, 2, 3].</p>
+
+<p>In fact, the <code>noexcept</code> specifier---along with the ability to detect whether an operation is <code>noexcept</code> via concepts---provides precisely the statically-checked exception specifications that are required in C++ code. We therefore propose to deprecate C++ exception specifications in C++0x: the community has already decided to avoid exception specifications and <code>noexcept</code> provides a superior alternative.</p>
+
+
 <h3 id="library">Library Changes</h3>
 <p>The introduction of <code>noexcept</code> and its use throughout the standard library will require significant changes in a few areas. The changes are summarized below.</p>
 
@@ -711,5 +716,5 @@
 
 <hr>
 <address></address>
-<!-- hhmts start --> Last modified: Sun Mar 22 21:19:01 PDT 2009 <!-- hhmts end -->
+<!-- hhmts start --> Last modified: Sun Mar 22 21:47:30 PDT 2009 <!-- hhmts end -->
 </body> </html>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk