Re:Why 1 && 2 == 2
by cldr on Friday July 19, 2013 @12:25AM
(#6068329)
Feel free to change it to how you like it if you feel that another syntax would be more convenient. You can choose another operator or just create a variadic template function and use function syntax to avoid operator precedence issues.
[ Parent
| on HN ]
Re:Why 1 && 2 == 2
by CamperBob2 on Friday July 19, 2013 @01:14AM
(#6068450)
printf("%d", 2 && 1);
seems to work OK.