Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cppguide #55

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cppguide.html
Original file line number Diff line number Diff line change
@@ -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
@@ -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>