123456
void function(Class* other){ if(SubClass* t = dynamic_cast<SubClass*>(other)){ //dostuff //should I "delete t"? } }
new
delete