Skip to content

Instantly share code, notes, and snippets.

View ratiotile's full-sized avatar

ratiotile

View GitHub Profile
#include <typeinfo>
bool Manager::hasTask( const type_info &taskType )
{
list<Task>::iterator it = mTasks.begin();
for (it; it != mTasks.end(); ++it )
{
Task task = (*it);
if(typeid(*task) == taskType) return true;
}