Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
edflsafoiewq
6y ago
0 comments
Save
Share
You could do sizeof((expr)?1:2) instead, which would also force expr to be contextually convertible to a bool.
0 comments
1 comments · 1 top-level
top
newest
oldest
pandaman
6y ago
sizeof((expr)) would suffice to filter out types.
j
/
k
navigate · click thread line to collapse