"statement cannot resolve address of overloaded function"

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 (unsigned int 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;
    	}
closed account (Dy7SLyTq)
it should probably be shapes[i]->print(); but idk what shapes is
Topic archived. No new replies allowed.