Skip to content

Commit

Permalink
Update Listing 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Diehl committed Sep 12, 2024
1 parent 3df9567 commit c7650b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _posts/2024-08-15-addendum.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ if (values.size() % 2 == 0) {
}
{% endhighlight %}

[Listing 3.6](https://github.com/ModernCPPBook/Examples/blob/main/notebooks/Chapter_3.ipynb) the [C++20 range-based for statements with initializer](https://en.cppreference.com/w/cpp/language/range-for)

{% highlight c++ %}
for (int index = 0; const int value : values) {
std::cout << "Index=" << index++ << " Value= " << value
}
{% endhighlight %}

## Chapter 15

[Listing 15.7](https://github.com/ModernCPPBook/Examples/blob/main/cpp/Chapter_15/Listing_15_7.cpp) on page 175 of the printed version the lines 38 to 40 should be removed.
Expand Down

0 comments on commit c7650b8

Please sign in to comment.