diff --git a/cppguide.html b/cppguide.html index 11d2d5366..296399aee 100644 --- a/cppguide.html +++ b/cppguide.html @@ -1325,7 +1325,11 @@

Doing Work in Constructors

  • There is no easy way for constructors to signal errors, short of crashing the program (not always appropriate) or using exceptions - (which are forbidden).
  • + (which are forbidden). + The destructor will not run if your constructor throws + an exception. Be sure to do all your throw-checking upfront before + executing any resource-claiming actions, especially those without proper + RAII.
  • If the work fails, we now have an object whose initialization code failed, so it may be an unusual state requiring a bool @@ -4666,10 +4670,6 @@

    Other C++ Features

    does not have sufficient support for testing, and suffers from inherent security vulnerabilities.
  • - -
  • The <filesystem> header, until it is available on all - of our supported platforms.
  • -