Title
copy_exception API slices.
Status
nad
Section
[propagation]
Submitter
Alisdair Meredith

Created on 2007-10-10.00:00:00 last changed 164 months ago

Messages

Date: 2010-10-21.18:28:33

[ Bellevue: ]

How could this be implemented in a way that the dynamic type is cloned?

The feature is designed to create an exception_ptr from an object whose static type is identical to the dynamic type and thus there is no slicing involved.

Date: 2007-10-10.00:00:00

It could be I did not understand the design rationale, but I thought copy_exception would produce an exception_ptr to the most-derived (dynamic) type of the passed exception. Instead it slices, which appears to be less useful, and a likely source of FAQ questions in the future.

(Peter Dimov suggests NAD)

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg3637
2007-10-10 00:00:00admincreate