Preventing software bugs from reaching our customers requires multiple layers of defense. This post explores seven layers of bug prevention.
Tag: static_assert
Favorite Tricks: Static Assert
One of my favorite software development "tricks" is making frequent use of any "static assert" feature provided by the compiler. This trick's primary benefit is in moving certain error conditions to compile-time rather than run-time. Embedded software engineers would be wise…