Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51788 - sandbox/committee/rvalue_ref
From: dgregor_at_[hidden]
Date: 2009-03-15 15:35:15


Author: dgregor
Date: 2009-03-15 15:35:14 EDT (Sun, 15 Mar 2009)
New Revision: 51788
URL: http://svn.boost.org/trac/boost/changeset/51788

Log:
Note that functions cannot be overloaded based on noexcept
Text files modified:
   sandbox/committee/rvalue_ref/rvalue-ref-exception-safety.html | 12 ++++++++++--
   1 files changed, 10 insertions(+), 2 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-15 15:35:14 EDT (Sun, 15 Mar 2009)
@@ -329,7 +329,15 @@
 confusion</a>, especially for programmers who have used the similar
 (statically-checked) facilities in Java. Moreover, exception
 specifications have a poorly-defined role in the C++ type system,
-because they can only be used in very limited ways.
+because they can only be used in very limited ways.</p>
+
+<p>Functions cannot be overloaded based on <code>noexcept</code>
+alone. For example, the following code is ill-formed:</p>
+
+<pre>
+noexcept void f() { } // #1
+void f() { } // #2: redefinition of #1
+</pre>
 
 <h3 id"noexcept-concepts"><code>noexcept</code> in concepts</h3>
 
@@ -372,5 +380,5 @@
 
 <hr>
 <address></address>
-<!-- hhmts start --> Last modified: Sun Mar 15 12:30:02 PDT 2009 <!-- hhmts end -->
+<!-- hhmts start --> Last modified: Sun Mar 15 12:36:01 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