On 2012-08-02 14:35, Stephan Bergmann wrote:

No "defensive programming," please. If we consider a given (beginIndex, count) arguments a violation of copy's precondition, then fail on it, as fast as possible (via assert -> abort in a non-NDEBUG build, via undefined behavior (-> hopefully crash soon) otherwise).
Rather crash earlier than later.
  *NULL = 0xdeadbeef;
can't be all that expensive.

Disclaimer: http://www.peralex.com/disclaimer.html


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

Reply via email to