Can still be useful for debugging, since it's a quick-and-dirty way to make something assert-compatible without needing any other includes or code. Sometimes sees use in compile-time testing, too, since 0-length arrays are invalid; this is mostly solved by static_assert, but I think it still comes up from time to time?
View all comments
Show parent comment
2
u/conundorum Mar 21 '26
Can still be useful for debugging, since it's a quick-and-dirty way to make something
assert-compatible without needing any other includes or code. Sometimes sees use in compile-time testing, too, since 0-length arrays are invalid; this is mostly solved bystatic_assert, but I think it still comes up from time to time?