5 ms·
Maybe these compile time tests are more like `static_assert`, which is valuable for catching incompatible uses of library functions. Pretty good idea in my opi
by omoikane 2y ago
Maybe these compile time tests are more like `static_assert`, which is valuable for catching incompatible uses of library functions. Pretty good idea in my opinion.
- kstenerud 2y agoSure, enforcing invariants is a good thing to do right off the bat. But not "does this code do what it says on the tin?" kinds of tests. Those are better run gradually, at the (current) developer's behest (and most certainly, not blocking compilation).
- tczMUFlmoNk 2y agoThe article is literally talking about `_Static_assert`, yes. It's used in the code examples and described in the text.