Boost logo

Boost Users :

Subject: Re: [Boost-users] [exception, serialization] transporting exceptions
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2012-10-05 19:55:36


On Fri, Oct 5, 2012 at 4:07 PM, Brian Budge <brian.budge_at_[hidden]> wrote:
> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net