Re:Why 1 && 2 == 2
by CamperBob2 on Friday July 19, 2013 @12:20AM
(#6068316)
I like how
demonstrates the lameness of the whole C++ iostreams syntax. I'll have to remember that the next time an argument arises.
[ Parent
| on HN ]
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.
Re:Why 1 && 2 == 2
by CamperBob2 on Friday July 19, 2013 @01:14AM
(#6068450)
printf("%d", 2 && 1);
seems to work OK.