c++ - instantiated class of an object -


i debugging c++ program gdb in eclipse. how can exact class of object? let's debugging method

void foo(instruction *i){   i->bar(); } 

let's instruction has lot of subclasses. how can know subclass of instruction instantiates object i?

you want "set print object on". use rtti information print full object.

this should default; eventually.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -