issue with OS X and std::set, erase doesn't return an iterator. todo: check this

This commit is contained in:
ejcoumans 2006-09-19 07:06:23 +00:00
parent d375a474b3
commit eb6664f7c2

View File

@ -176,7 +176,13 @@ void OverlappingPairCache::ProcessAllOverlappingPairs(OverlapCallback* callback)
BroadphasePair* pair = (BroadphasePair*)(&(*it));
if (callback->ProcessOverlap(*pair))
{
it = m_overlappingPairSet.erase(it);
CleanOverlappingPair(*pair);
\
std::set<BroadphasePair>::iterator it2 = it;
it++;
//why does next line not compile under OS X??
//it = m_overlappingPairSet.erase(it2);
m_overlappingPairSet.erase(it2);
} else
{
it++;