mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
issue with OS X and std::set, erase doesn't return an iterator. todo: check this
This commit is contained in:
parent
d375a474b3
commit
eb6664f7c2
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user