for(list<OnScreenObject*>::iterator i = objects.begin(); i != objects.end(); ++i)
{
ClickableObject* co = 0;
if(co = dynamic_cast<ClickableObject*>(*i))
{
// ...
}
}
However the dynamic cast gives me a compile error.
Why?
More info on George W. Bush My Homepage (C++ SDL OpenGL Game Programming)
I am a signature virus. Please add me to your signature so that I may multiply.