Skip to content

Commit

Permalink
Remove Drake's filesystem notes and update ctor throwing
Browse files Browse the repository at this point in the history
  • Loading branch information
zachfang committed Jan 9, 2025
1 parent b474ba1 commit 2b4fe11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cppguide.html
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,11 @@ <h3 id="Doing_Work_in_Constructors">Doing Work in Constructors</h3>

<li>There is no easy way for constructors to signal errors, short of
crashing the program (not always appropriate) or using exceptions
(which are <a href="#Exceptions">forbidden</a>).</li>
<code class="nondrake">(which are <a href="#Exceptions">forbidden</a>)</code>.
<span class="drake">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.</span></li>

<li>If the work fails, we now have an object whose initialization
code failed, so it may be an unusual state requiring a <code>bool
Expand Down Expand Up @@ -4666,10 +4670,6 @@ <h3 id="Other_Features"><a id="C++11">Other C++ Features</a></h3>
does not have sufficient support for testing, and suffers
from inherent security vulnerabilities.</li>
</span>
<span class="drake">
<li>The <code>&lt;filesystem&gt;</code> header, until it is available on all
of our supported platforms.</li>
</span>

</ul>

Expand Down

0 comments on commit 2b4fe11

Please sign in to comment.