Boost logo

Boost :

From: Daniel Wallin (dalwan01_at_[hidden])
Date: 2004-02-10 16:02:09


Pavel Vozenilek wrote:
> "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.

You are right, very cool!

-- 
Daniel Wallin



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