-#if 0
- // According the std::vector docs, only items at position i and beyond are
- // invalidated, everything before i is still valid. So we use that here.
- for(uint i=0; i<connected.size();)
- {
- // If we found our object, erase it from the vector but don't advance
- // the iterator. Otherwise, advance the iterator. :-)
- if (connected[i].object == obj)
- connected.erase(connected.begin() + i);
- else
- i++;
- }
-#else