Re:What is “:-!!” in C code?
by comex on Monday November 21, 2016 @12:07AM
(#13003304)
Note that C11 has a more friendly static assertion feature:
(You can also use "static_assert" as an alias for the ugly keyword after including <assert.h>.)
[ Parent
| on HN ]
I wander what kernel developers thinking about migrating toward C11.
Re:What is “:-!!” in C code?
by CapacitorSet on Monday November 21, 2016 @01:29AM
(#13003598)
I think there's a better chance for a static_assert proposal in C, especially since Torvalds isn't particularly fond of C++.
Edit: whoops, apparently static_assert is in C11 as well as in C++11. Ignore this comment.