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 ???
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 ???