Modified August 26, 2014.
Errata for Bjarne Stroustrup: A Tour of C++, Addison-Wesley, 2013. ISBN 978-0321958310. Errata for the 2nd printing to be applied to create the 3rd printing.
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 sometimes use the terse notation: s/old text/new text/
Preface:
Chapter 1:
Chapter 2:
Chapter 3:
Chapter 6:
Chapter 7:
pg 81: s/The pattern(ab)* matches all of ababab. However,(ab)*? matches only the first ab./The pattern(ab)+ matches all of ababab. However,(ab)+? matches only the first ab./
Chapter 8:
pg 92: s/ifs;/ifs {"source"};/
pg 101: s/in both case/in insert()/
Chapter 9:
Chapter 10:
Chapter 11:
pg 120: s/containing{1,string{"Ankh Morepork"},4.65}./containing{2,string{"Oz"},7.62}./
Chapter 12:
Chapter 13:
Chapter 14:
pg 161: s/0xFF is/0xFF00 is/
Chapter 15:
Chapter 16:
Chapter 17:
Chapter 18:
Chapter 19:
Chapter 20:
Chapter 21:
pg797: The "sort halves" example should be:
sort(v.begin(),v.begin()+v.size()/2); // sort first half of v's elements sort(v.begin()+v.size()/2,v.end()); // sort second half of v's elementsChapter 22:
Thanks to all who send me problems, correction, and clarifications: Vadim Flyagin, Bernhard Kick, Paolo Monteverde, Laszlo Papp, Joseph P. Skudlarek
Apologies if I missed a name.