C++ Pocket Reference by Kyle Loudon This errata page lists errors corrected in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated August 29, 2007. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification [18] The for-loop will not compile (using g++) unless you define an operator++ for the enum: It should be: SpectrumColor operator++(SpectrumColor &s, int dummy) { return s = (s >= Violet) ? Red : SpectrumColor(s + 1); }