hello everybody
i'm trying to make changes to a std::list of ints while iterating trough it.i simply check each element, and if it is equal to 10, i delete it and add two new elements, with the value of 5 and 6.
while debugging, it seems to work fine until it reaches the last element with the value of 10, when it freezes (no error message, it just freezes, probably stuck in some infinite loop).
any help is apreciated. thanks in advance.