Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60467 - sandbox/committee/exceptions
From: dgregor_at_[hidden]
Date: 2010-03-11 01:50:10


Author: dgregor
Date: 2010-03-11 01:50:09 EST (Thu, 11 Mar 2010)
New Revision: 60467
URL: http://svn.boost.org/trac/boost/changeset/60467

Log:
Fix some typos, and switch an example over to noexcept
Text files modified:
   sandbox/committee/exceptions/d3051.html | 14 +++++-----
   sandbox/committee/exceptions/deprecating-exception-specs.rst | 48 ++++++++++++++++++++--------------------
   2 files changed, 31 insertions(+), 31 deletions(-)

Modified: sandbox/committee/exceptions/d3051.html
==============================================================================
--- sandbox/committee/exceptions/d3051.html (original)
+++ sandbox/committee/exceptions/d3051.html 2010-03-11 01:50:09 EST (Thu, 11 Mar 2010)
@@ -389,15 +389,15 @@
 <p>With the introduction of <tt class="docutils literal"><span class="pre">noexcept</span></tt>, programmers can now express the
 two kinds of exception guarantees that are useful in practice, without
 additional overhead. This paper therefore proposes to deprecate
-&quot;dynamic&quot; exception specifications, i.e., those based on
-<tt class="docutils literal"><span class="pre">noexcept</span></tt>.</p>
+&quot;dynamic&quot; exception specifications, i.e., those that are written as
+<span class="raw-html"><code>throw(</code><i>type-id-list<sub>opt</sub></i><code>)</code></span>.</p>
 </div>
 <div class="section" id="approach">
 <h1><a class="toc-backref" href="#id7">Approach</a></h1>
 <p>The general approach taken by this paper is to separate the wording
 required for dynamic exception specifications (those using <tt class="docutils literal"><span class="pre">throw</span></tt>)
 into a new, deprecated section D.5, while maintaining the description
-of <tt class="docutils literal"><span class="pre">noexception</span></tt> and the general behavior of exception
+of <tt class="docutils literal"><span class="pre">noexcept</span></tt> and the general behavior of exception
 specifications in 15.4. The intent of the revised 15.4 (and core
 language in general) is to minimize the number of dependencies on
 the deprecated section D.5, and to mark each of those with a
@@ -686,19 +686,19 @@
 <pre class="literal-block">
 struct A {
   A();
- A(const A&amp;) throw();
+ A(const A&amp;) <span class="del">throw()</span><span class="ins">noexcept</span>;
   ~A() throw(X);
 };
 
 struct B {
- B() throw();
- B(const B&amp;) throw();
+ B() <span class="del">throw()</span><span class="ins">noexcept</span>;
+ B(const B&amp;) <span class="del">throw()</span><span class="ins">noexcept</span>;
   ~B() throw(Y);
 };
 
 struct D : public A, public B {
   // Implicit declaration of D::D();
- // Implicit declaration of D::D(const D&amp;) throw();
+ // Implicit declaration of D::D(const D&amp;) <span class="del">throw()</span><span class="ins">noexcept</span>;
   // Implicit declaration of D::~D() throw(X,Y);
 };
 </pre>

Modified: sandbox/committee/exceptions/deprecating-exception-specs.rst
==============================================================================
--- sandbox/committee/exceptions/deprecating-exception-specs.rst (original)
+++ sandbox/committee/exceptions/deprecating-exception-specs.rst 2010-03-11 01:50:09 EST (Thu, 11 Mar 2010)
@@ -16,6 +16,23 @@
 
 .. contents:: index
 
+.. role:: sub
+
+.. role:: ins
+
+.. role:: del
+
+.. role:: ed
+
+.. role:: insc(ins)
+ :class: ins code
+
+.. role:: delc(del)
+ :class: ins code
+
+.. role:: raw-html(raw)
+ :format: html
+
 Introduction
 ************
 
@@ -57,8 +74,8 @@
 With the introduction of ``noexcept``, programmers can now express the
 two kinds of exception guarantees that are useful in practice, without
 additional overhead. This paper therefore proposes to deprecate
-"dynamic" exception specifications, i.e., those based on
-``noexcept``.
+"dynamic" exception specifications, i.e., those that are written as
+:raw-html:`<code>throw(</code><i>type-id-list<sub>opt</sub></i><code>)</code>`.
 
 Approach
 ********
@@ -66,7 +83,7 @@
 The general approach taken by this paper is to separate the wording
 required for dynamic exception specifications (those using ``throw``)
 into a new, deprecated section D.5, while maintaining the description
-of ``noexception`` and the general behavior of exception
+of ``noexcept`` and the general behavior of exception
 specifications in 15.4. The intent of the revised 15.4 (and core
 language in general) is to minimize the number of dependencies on
 the deprecated section D.5, and to mark each of those with a
@@ -121,23 +138,6 @@
 Proposed Changes to Standard Wording
 ************************************
 
-.. role:: sub
-
-.. role:: ins
-
-.. role:: del
-
-.. role:: ed
-
-.. role:: insc(ins)
- :class: ins code
-
-.. role:: delc(del)
- :class: ins code
-
-.. role:: raw-html(raw)
- :format: html
-
 The wording in this paper is based on the current working paper
 (N3035) as amended by N3050.
 
@@ -394,19 +394,19 @@
 
       struct A {
         A();
- A(const A&) throw();
+ A(const A&) :del:`throw()`:ins:`noexcept`;
         ~A() throw(X);
       };
 
       struct B {
- B() throw();
- B(const B&) throw();
+ B() :del:`throw()`:ins:`noexcept`;
+ B(const B&) :del:`throw()`:ins:`noexcept`;
         ~B() throw(Y);
       };
 
       struct D : public A, public B {
         // Implicit declaration of D::D();
- // Implicit declaration of D::D(const D&) throw();
+ // Implicit declaration of D::D(const D&) :del:`throw()`:ins:`noexcept`;
         // Implicit declaration of D::~D() throw(X,Y);
       };
 


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