I have this function which works fine in visual studio:
btw this is code for a c++ stl map, where map is Life and the iterator is di.
but when i run it in linux i get this error:Code:void structure::deletion_process() { for (di = Life.begin(); di != Life.end(); /* nothing here */) { if (di->second.getDelete()) { di =Life.erase(di); } else { ++di; } } }
error: no match for operator=