Hacker News new | past | comments | ask | show | jobs | submit login

No, postfix increment returns an rvalue, so it can’t be applied twice. (jk)



Ah of course. So name it instead C+=2


Looks like you could have (++C)++


If the idea is to remove old & deprecated features from C++ that would be (C++)—-


You can't do that because of the rvalue problem I mentioned above. Only (++C)-- and (--C)++ are allowed!




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: