Harald van D©¦k <true...@gmail. comwrote:
It is a constraint violation. Unfortunately, it's also
not an uncommon extension to allow zero sized arrays,
particularly at the end of a struct. So, I prefer
((need) ? 1 : -1) for compile time asserts.
--
Peter
...
When you define an array of length 0 the compiler
will let you know you're doing something wrong.
When you define an array of length 0 the compiler
will let you know you're doing something wrong.
not an uncommon extension to allow zero sized arrays,
particularly at the end of a struct. So, I prefer
((need) ? 1 : -1) for compile time asserts.
--
Peter
Comment