I originally had the following code where it- void**:
while (it != end)
{
*it = *(it + 1);
it++;
}
I decided to change it + 1; it++;to ++it;because I calculated the same value twice.
while (it != end)
{
*it = *(++it);
}
However, after that, my program no longer works the same.
Edit: I would like to point out that this is not i = i++;, but rather an assignment to the value that the itvalue before it points to.
source
share