Advertisement

I have a pointer pointed to a class................

Started by July 01, 2000 10:50 AM
0 comments, last by FancyZero 24 years, 5 months ago
I have a void* pointer pointed to a class. How can I know, what the class is? the code: class a; class b; void* p p=&a How can I know,the pointer "p" is point to a class b or a class a??
Well, I haven''t played with RTTI, but I think this is what you need. RTTI is RunTime Type something

This topic is closed to new replies.

Advertisement