Adding an object to a vector in the middle of an iteration error

后端 未结 0 847
忘了有多久
忘了有多久 2020-12-08 06:24

Alright so, I\'m in the middle of a loop that iterates all objects in a vector:

for (auto &itr : m_entities) {
    itr.second->Update(l_time);
    if (         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题