#if defined()
#if defined(SOMETHING) offers more flexibility than #ifdef SOMETHING.
#if defined(SOMETHING) offers more flexibility than #ifdef SOMETHING.
Stephan T. Lavavej, rand() Considered Harmful (30min)
Brief
https://youtu.be/xu7q8dGvuwk?t=1198
Brief
Brief
Brief
You can delete functions to prevent them from beeing used. This is mostly used to prevent a type from being copied ; for example std::sharedptr.
There are *very few* good reasons to use `friend`.
Brief
Pointers can be null
Brief
Brief
No naked new : this doesn't mean no dynamic allocations, it just means they should always be done through a smart pointer or a container.
Brief
Brief
Brief
Brief
Here are some of the most important ones:
C.21: If you define or =delete any copy, move, or destructor function, define or =delete them all.