3 ms·
Many people have their compilers set to enforce these things, and many of us go a step further and make our compiler warnings into errors so it’s impossible to
by hellofunk 7y ago
Many people have their compilers set to enforce these things, and many of us go a step further and make our compiler warnings into errors so it’s impossible to build a program with these errors. That’s very commonplace, and C++ does it just fine. Missing cases in enums and at least 100 other very common matters can be checked at compile time in C++, the only difference is that it’s not the default as it is in some other languages.