Y
Hacker News
new
|
ask
|
show
|
jobs
by
edflsafoiewq
2432 days ago
You could do sizeof((expr)?1:2) instead, which would also force expr to be contextually convertible to a bool.
1 comments
pandaman
2432 days ago
sizeof((expr)) would suffice to filter out types.
link