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.
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.