2 ms·
Note that lambda expressions are not allowed in an unevaluated context. What about this? #define MY_ASSERT(expr) do {} while (false && ((expr), false)) Thi
by leni536 7y ago
Note that lambda expressions are not allowed in an unevaluated context. What about this?
#define MY_ASSERT(expr) do {} while (false && ((expr), false))
This doesn't require expr to be convertible to bool.
- DerekL 7y agoActually, the argument of MY_ASSERT should always be convertible to bool, even in release mode.