Join Slack
Powered by
In C/C++, I used to explicitly cast to `void` to i...
# announcements
c
cedric
06/07/2016, 6:14 PM
In C/C++, I used to explicitly cast to
void
to indicate I was intentionally ignoring the returned value:
(void) foo();
The compiler doesn’t care but human readers might want to know it’s intentional and not an oversight or me just ignoring an error
Open in Slack
Previous
Next