I have this code on Win32:
Actor* Scene::GetActor(const char* name)
{
StringID actorID(name);
auto actor = find_if(m_actors.begin(), m_actors.end(), [&](Actor* actor){return actor->GetName() == actorID;});
return actor != m_actors.end() ? *actor : NULL;
}
Because this couldn't be compiled on iPhone with GCC/LLVM Clang I want to removed C++11 features from it. Is there any other easy way of using STL algorithms without using C++11 features? I don't want to declare simple function like this compare function everywhere in the code.