Wouldn't it be better to return the class's typeinfo if it is a class and the interface's typeinfo if it isn't? The interface would then return the most derived typeinfo that it knows of. I think, just because the interface can be something other then a class object, doesn't mean it should be treated as though it will never be a class object.
On 12/3/2012 6:26 AM, Gor Gyolchanyan wrote:Think of it this way. An int can be implicitly converted to a long, but they have different typeid's because they are different bits.
What's the logic in this behavior?