typeof() always gets the static type, typeid() is needed if you
want the dynamic type.

Reply via email to