Maybe I\'m misunderstanding how inheritance works here, but here\'s my problem:
I have a class Option, and a class RoomOption that derives from it. I have another cl
First of all yor getting the typeid of the shared_ptr.
Then you should use dynamic_cast instead of typeid. E.g:
if (dynamic_cast(player->getRoom()->getOption(0).get()) != 0){ cout << "Its a RoomOption!" << endl; }