Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
leni536
on Oct 24, 2019
|
parent
|
context
|
favorite
| on:
What are unevaluated operands in C++?
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
on Oct 24, 2019
[–]
Actually, the argument of
MY_ASSERT
should always be convertible to
bool
, even in release mode.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: