Boost logo

Boost :

From: Daryle Walker (darylew_at_[hidden])
Date: 2001-05-02 08:40:36


on 5/1/01 4:05 PM, Peter C Murray at Peter.Murray_at_[hidden] wrote:

I said:
>> Should we have a function to determine if a class is polymorphic?

> What would you use it for?

No particular reason. It could help another function to decide on using
static_cast or dynamic_cast to find a base or the beginning (with void*) of
an object. It does make a big difference on how a class is arranged, so we
should have some sort of run-time indication. A compile-time check would be
better, if possible.

-- 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

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