Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed risk assessment "rule"

The C Language facilities setjmp() and longjmp() can be used to simulate the throwing and catching of exceptions, but they are very low-level facilities, and using them can bypass proper resource management and the proper calling of destructors.

The C++ Standard ISO/IEC 14882-2003, section 18.7 paragraph 4. says:

...

Wiki Markup
\[[ISO/IEC 14882-2003|AA. References#ISOBibliography#ISO/IEC 14882-2003]\] Section 18.7
\[[Henricson 97|AA. References#HenricsonBibliography#Henricson 97]\] Rule 13.3 Do not use {{setjmp()}} and {{longjmp()}}.

...