https://sourceforge.net/tracker/?func=detail&atid=105776&aid=2924120&group_id=5776
The compare looks wrong to me, because the order of the iterators
is undefined. Suggest new code
for( std::deque<AUnit *>::iterator i = buf.begin(); i != buf.end(); ++i )