Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-02-10 08:46:13


"Daniel Wallin" <dalwan01_at_[hidden]> wrote

> AFAICT there is no way to determine the most derived type.
>
There is. Relation between types is stored in application
in order to enable exception catching mechanism.

If you throw pointer to type T during runtime, you can
find if it is most derived than other types. You need to
generate all combinations of catch clauses and try them
all. It is rather slow but tricks can be used to sped it up.

/Pavel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk