Skip to content

Commit

Permalink
Closes #109
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Lospinoso committed Jan 21, 2020
1 parent 43519ec commit dde5ad9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/index.html
Expand Up @@ -268,11 +268,16 @@ <h5>C++ Crash Course contains well over 500 code samples &amp; nearly 100 exerci
<h3 class="pb-3 mb-4 font-italic border-bottom" id="errata">Errata</h3>
<h5>To report an erratum, please submit an issue on Github <a href="https://github.com/JLospinoso/ccc/issues">https://github.com/JLospinoso/ccc/issues</a>.</h5>
<ul>
<li><a href="https://github.com/JLospinoso/ccc/issues/109">p. 31</a> std::byte and size_t are not "fundamental types" in the C++ standard
and should have their own section labeling them as such.</li>
<li><a href="https://github.com/JLospinoso/ccc/issues/93">p. 41</a> "The usual format specifiers for a size_t are %zd for a decimal representation
or %zx for a hexadecimal representation." The correct format specifier for size_t is %zu, which is the unsigned version of %zd. This error appears consistenly throughout the remainder of the book!</li>
<li><a href="https://github.com/JLospinoso/ccc/issues/44">p. 97</a> The C++ Standard says that thread_local variable lifetimes begin <i>at latest</i> upon first use by the thread. The text
implies that the thread_local life time is similar to a static lifetime. You can modify Listing 4-6 by inserting the line "const auto t2_ptr = &t2;" at the very beginning of main, or at
namespace scope.</li>
<li><a href="https://github.com/JLospinoso/ccc/issues/109">p. 160</a> SimpleUniquePointer's parameterless
constructor should not be default. It should initialize the pointer member to nullptr. Also, the move assignment operator and the destructor do not need
to check if pointer equals nullptr. Deleting a nullptr is totally valid.</li>
<li><a href="https://github.com/JLospinoso/ccc/issues/28">p. 353</a> fclose returns an int. If it's successful, fclose returns 0, otherwise EOF. (See https://en.cppreference.com/w/c/io/fclose)</li>
</ul>
</div>
Expand Down

0 comments on commit dde5ad9

Please sign in to comment.