for(auto it = m_islands.begin();
it != m_islands.end();)
{
it->update();
if(it->getPosition().x < 0)
m_islands.erase(it);
else it++;
}
m_islands to vector obiektów klasy Island.
Klasa Island ma zdefiniowany konstruktor kopiujący.
Przy kompilacji wyrzuca error:
error: use of deleted function 'Island& Island::operator=(const Island&)'|
note: 'Island& Island::operator=(const Island&)' is implicitly deleted because the default definition would be ill-formed:|
error: non-static const member 'const size_t Island::m_squareNumber', can't use default assignment operator|
Kompletnie nie ogarniam. Gdzie ja tu używam operatora =? I właściwie dlaczego miałby być usunięty?