Could be avoided on SelectTargets by using std::list::remove_if(...) where the predicate's name is along the name of Trinity::ObjectTypeIdCheck