Extracting runtime info

D

Deepak Jharodia

I'm trying to build a object hierarchy in C++. I have been able to
build a list pointers to base class type of all objects. What I want
to do now is to call specific functions of each derived class. For
that I need to have pointer of type derived class. For that I need to
know derived class type and its template arguments. One way is to try
dynamic casting with each template argument possible.
Instead, I'm looking for a more elegant solution perhaps involving
BFS, elfread library, COFF ???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,171
Messages
2,570,935
Members
47,472
Latest member
KarissaBor

Latest Threads

Top