Question about iterator management in sw/source/core/fields/cellfml.cxx
Stephan Bergmann
sbergman at redhat.com
Fri Feb 3 08:49:58 PST 2012
On 02/03/2012 05:31 PM, Michael Stahl wrote:
> ah, that's surprising.
that's shocking ;)
> see, that is why i almost always write the i++ as an extra statement,
> i'm never quite exactly sure what it does, and when :)
There is a sequence point (in C++03 parlance; the nomenclature changed
slightly for C++11) after evaluation of all function arguments, before
any statements of the function body are executed. Therefore, erase(i++)
fully executes i++ before calling erase (with the old value of i).
Stephan
More information about the LibreOffice
mailing list