libstdc++ has a "debug" mode: https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode.html
which adds checks for iterator safety and algorithm preconditions. Bug 1270832, recently landed on inbound, turns this mode on for debug builds via our wrapped C++ headers. Please file a bug if you find that debug mode is not getting turned on when you think it should. Safer hacking, -Nathan _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform