I am getting the error "statement cannot resolve address of overloaded function" for the shapes[i]->print line, not sure what I am doign wrong
1 2 3 4 5 6 7 8 9
for (unsignedint i = 0; i < shapes.size(); ++i)
{
// downcast pointer
circle* cptr = dynamic_cast<circle*>(shapes[i]);
// determine whether element points to circle
if (cptr != NULL)
shapes[i]->print;
}