News for hackers. Stuff that matters.
Re:“:-!!” what is it in c code? by apaprocki on Sunday March 11, 2012 @12:30PM (#3690591)
These machinations were always necessary to get compile-time asserts. Luckily C++11 and C11 are both providing static_assert so there will be real compiler support instead of having to trick it into dumping an error.

edit: Another common one is using __LINE__ or __COUNTER__ in an array symbol name and having the test value result in an array size of -1.

There are no comments on this comment yet.