On 12.06.2012 14:12, Tor Lillqvist wrote:
No, growing a vector (which push_back can do) invalidates all references
into the vector.
Would building with --enable-dbgutil on Linux (thus defining
_GLIBCXX_DEBUG) had caught this problem?
no, because there's no iterator involved: back() returns a reference to
the value_type.
If yes, they I certainly start agreeing with you (IIRC) that
developers should use --enable-dbgutil.
despite not helping here, _GLIBCXX_DEBUG finds sufficiently many
problems already that i think it's definitely worth using.
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.