5 Oct
2012
5 Oct
'12
11:55 p.m.
On Fri, Oct 5, 2012 at 4:07 PM, Brian Budge
Is there any way to force a behavior where any exception derived from a given exception, myexception, will act as though it were thrown wrapped with enable_current_exception?
No.
What exactly does enable_current_exception do?
It throws an exception of unspecified type that derives from the type used to instantiate the enable_current_exception function template. That unspecified type implements the cloning functionality, which is invoked through a virtual function call at the time the exception_ptr object is created. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode