Is anyone aware of a good tutorial or reference list for writing good modern C++ (C++11 or newer, I guess)?
Is anyone aware of a good tutorial or reference list for writing good modern C++ (C++11 or newer, I guess)?
My preferred reference for the language and standard library: http://en.cppreference.com/w/
The following is a longer guide on modern C++ style: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppC...
And in case it helps, the main things I find myself using differently to C are:
- Smart pointers. If you're not using them, use them. They're amazing. Seriously. Never have to worry about freeing something ever again.
- Object oriented design.
- Const reference arguments.
- The occasional auto.
One word of warning though, there's a confusing similarly titled book called "C++ Primer Plus" which you should avoid at all costs.
Unfortunately, the book is C++11 only and correspondingly does not talk about C++14 or C++17.