One issue with software is the lack of units. While we learn about categories and units in school as children when doing arithmetic, software programs do not have equivalent units. This, alongside undefined variables, is one of the biggest safety problems in all programming languages. However, this can be resolved using C++, even at compile time. With templates and literals, you can write source code with units, and operators can ensure that velocity indeed arises from the quotient of distance and time. This even enhances data security and control.
What begins on the whiteboard, we later see in the source code. This makes this episode particularly versatile and applicable to many examples. Once again, I demonstrate that the myth of an unsafe programming language is a fake, and it's not the language itself but rather the qualifications that matter. Additionally, we enable a strong ordering for floating-point numbers, thereby addressing the third problem, at least for floating-point variables.
At the end of the video, I use SFINAE to turn inheritance on its head and create a class derived from different base classes using a tag. This also allows us to have less source code and work with very different metrics. Thus, this video is another special exploration of the capabilities of Modern C++, one of the most powerful programming languages available.