Undefined behaviour: the C/C++ hall of shame
Collecting the most surprising, dangerous, and instructive examples of undefined behaviour in C and C++.
C and C++ in all their glory and pain. Pointers, templates, the STL, memory management, undefined behaviour, and squeezing every last nanosecond out of the hardware.
Collecting the most surprising, dangerous, and instructive examples of undefined behaviour in C and C++.
A progression from simple function templates to modern C++20 concepts and why concepts replaced SFINAE.
People say 'use modern C++' but the advice is vague. Here is what it concretely means on a real codebase.
Test description