From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2008-04-14 11:48:55
Anthony Williams wrote:
> "vicente.botet" <vicente.botet_at_[hidden]> writes:
>> Anthony, can I take a look to your implementation?
> Sure. I've attached it here. It uses direct access to the MSVC exception
> mechanism to clone ANY exception for later rethrow. It works for MSVC 7.1 and
> MSVC 8.0. I've not tried it with any other version. It will NOT work with any
> other compiler (though it might be adapted to do so).
Very impressive (and very ugly, but messing with compiler internals is
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk