|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-04-14 12:07:07
Sebastian Redl:
> I looked into GCC's language support library, but it seems that GCC
> doesn't store the copy constructor of the thrown object anywhere -
> neither in the exception header, nor in the type info. This is very
> unfortunate, since it means that a similar implementation is not
> possible for GCC.
Note that N2179 doesn't require a copy to be made. If GCC allocates the
exception objects on a heap - I have some recollections that it was doing
that but I may be wrong - it might still be possible to implement
current_exception to return a pointer to the active exception object... if
there's a way to insert a reference count somewhere inside.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk