Highlights
- Curiously Recurring Template Pattern
template <class T> class Base { // methods within Base can use template to access members of Derived }; class Derived : public Base<Derived> { // ... };
- Allows the base class to safely access methods of derived class via
static_cast<const T*>(this)
orstatic_cast<const T&>()
- Still be careful calling these methods in constructor!
The video
The channel
- Cᐩᐩ Weekly With Jason Turner
- Every week a new video about 10 minutes long