REVIEW - Effective Modern C++ - 42 Specific Ways to Improve Your Use of C++11 and C++14


Title:

Effective Modern C++

42 Specific Ways to Improve Your Use of C++11 and C++14

Author:

Scott Meyers

Publisher:

O'Reilly (2014)

Pages:

315pp

Reviewer:

Paul Floyd

Reviewed:

September 2019

Rating:

★★★★★


Web page: http://shop.oreilly.com/product/0636920033707.do

Highly recommended (5/5).

Effective Modern C++ follows on in the tradition of the various other Effective C++ volumes by the same author. The style is much the same, down to the use of colour in the code samples. This volume is also arranged into items, 42 of them in this case. Probably the biggest stylistic change is the switch from Addison-Wesley to O’Reilly, which means white-on-pink text and an animal (a rose-crowned fruit dove).

The book covers all of the major changes and additions that came with C++11 and C++14: auto / decltype type deduction, brace initialisation, nullptr , constexpr , class enums, default / override / delete for class methods, smart pointers, rvalue references, lambdas and concurrency. That’s a lot of ground to cover and Meyers does a very good job of explaining it all in just over 300 pages. Not only did I find the explanations clear and easy to follow, but I also enjoyed the explanations of the benefits of using the new features. Meyers also makes it clear that the changes aren’t always that much of a revolution; for instance, in the case of rvalue references he points out that the benefits are likely to limited due to the conservative choices that were made by the C++ committee on specifying when the compiler can automatically generate move constructors and move assignment operators.

I definitely felt upon finishing this book that I understood C+11/14 better.


Book cover image courtesy of Open Library.





Your Privacy

By clicking "Accept Non-Essential Cookies" you agree ACCU can store non-essential cookies on your device and disclose information in accordance with our Privacy Policy and Cookie Policy.

Current Setting: Non-Essential Cookies REJECTED


By clicking "Include Third Party Content" you agree ACCU can forward your IP address to third-party sites (such as YouTube) to enhance the information presented on this site, and that third-party sites may store cookies on your device.

Current Setting: Third Party Content EXCLUDED



Settings can be changed at any time from the Cookie Policy page.