On 17.02.2012 00:20, Kohei Yoshida wrote:
As far as I know those STL methods that return its element are
guaranteed to return a reference to the stored instance, not its copy.

Ah, great, I was not sure of that.

On 17.02.2012 01:01, Michael Meeks wrote:
        I guess :-) I imagine the real problem here is that any kind of
operation on the stl container could then realloc the underlying memory
in some way, busting the reference / pointer you handed out elsewhere;
so it looks only transiently safe to me ;-)

I inspected the usages of that function - they look safe. However, the details are elusive for the users...

Thanks for the answers!

Best Regards,
Ivan

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to