From 79f0253d94f154d56a227d16025574b734f9c2c4 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Tue, 15 Apr 2008 22:23:19 +0000 Subject: [PATCH] Boost Exception documentation fix [SVN r44445] --- doc/cloning.html | 6 +++--- doc/cloning_and_rethrowing.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/cloning.html b/doc/cloning.html index 2e7e378..170446d 100644 --- a/doc/cloning.html +++ b/doc/cloning.html @@ -60,7 +60,7 @@ worker_thread( boost::except error = boost::current_exception(); } } -

In the above example, note that current_exception() captures the original type of the exception object, even though e refers to the base type boost::exception. This original type can be thrown again using the rethrow_exception() function:

+

In the above example, note that current_exception() captures the original type of the exception object. The exception can be thrown again using the rethrow_exception() function:

// ...continued
 
 void
@@ -72,9 +72,9 @@ work()
     if( error )
         boost::rethrow_exception(error);
     }
-

Clone_exception() could fail to copy the original exception object in the following cases:

+

current_exception() could fail to copy the original exception object in the following cases:

Regardless, the use of current_exception() and rethrow_exception() in the above examples is well-formed.

See also:

diff --git a/doc/cloning_and_rethrowing.html b/doc/cloning_and_rethrowing.html index cc44cf1..751c5d1 100644 --- a/doc/cloning_and_rethrowing.html +++ b/doc/cloning_and_rethrowing.html @@ -38,7 +38,7 @@ worker_thread( boost::except error = boost::current_exception(); } } -

In the above example, note that current_exception() captures the original type of the exception object, even though e refers to the base type boost::exception. This original type can be thrown again using the rethrow_exception() function:

+

In the above example, note that current_exception() captures the original type of the exception object. The exception can be thrown again using the rethrow_exception() function:

// ...continued
 
 void
@@ -50,9 +50,9 @@ work()
     if( error )
         boost::rethrow_exception(error);
     }
-

Clone_exception() could fail to copy the original exception object in the following cases:

+

current_exception() could fail to copy the original exception object in the following cases:

Regardless, the use of current_exception() and rethrow_exception() in the above examples is well-formed.

See also: