Boost logo

Boost :

From: Chris Just (cpjust_at_[hidden])
Date: 2005-03-01 20:39:35

Jody Hagins wrote:
>> I'm using MS Visual C++ 6.0. This is what I'm doing:
>> When I look at the type_info object's name(), it always returns
>> "CBase", even if it's actually a CDerived object.
> You have ommitted the most important pieces in your code sample...
> Compile and run the above on your compiler. If it fails, you have a
> problem with your compiler. Otherwise, you probably have a problem with
> your code. Note that you only get the most derived type, if the class
> is polymorphic (i.e., has at least one virtual function).

Thanks, that fixed it. I could have sworn I tried that before, but I guess not... :)

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

Boost list run by bdawes at, gregod at, cpdaniel at, john at