Modified January 3, 2019.
Errata for Bjarne Stroustrup: A Tour of C++ (2nd edition), Addison-Wesley, 2018. ISBN 978-0-13-499783-4.
Errata for the 1st and 2nd printings.
There seem to be a wide variety of opinion how much errata should be posted and how it should be presented. I have decided to post only errata that in my opinion may affect comprehension.
I do correct all typos and minor gramatical issues in future printings, and I may insert minor clarifications in the book. I just don't post them all as errata. All comment and corrections are welcome.
I often use the terse notation: s/old text/new text/
pg 17, last figure: after "r=r2" the value of r is 88
pg 32: s/use()/sqrt_sum()/
pg 74: for a>=b: s/!(b<a)/!(a<b)/
pg 89: at the end of the initialization of v: s/};/}();/
pg 91: s/and optional performance/and optimal performance/
pg 96: s/template<Random_access_iterator Iter, int n>/template<Random_access_iterator Iter>/
pg 96: s/for (--n)/while (n--)/
pg 100: s/R r/const R& r/
pg 102, for the left fold: s/<typename... T>/<Number... T>/
pg 131: s/istringstream/ostringstream/
pg 156: s/(const pair<string,int>& r)/(const auto& r)/
pg 168: s/A string_view/A span/
pg 169: s/for (int x : p)/for (int& x: p)/
pg 173: s/first and last/first and second/
Thanks to all who reported problems.