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
1
u/BobbyThrowaway6969 Mar 15 '26
The !! is a c/cpp thing, used to rebinarise booleans, it's redundant these days unless you're working with very old and fragile libraries.