Hey guys I am writing code that uses a dynamic casts then prints out some objects. What I am having trouble with is my code test as null when it isn't suppose to. Here is what I got and the dynamic cast code looks dead on to me. Maybe not though.
Circle* c=dynamic_cast<Circle*>(*itr);
if(c != NULL)
c->print();
else
cout << "error" << endl;