News for hackers. Stuff that matters.
Re:Near-duplicate features of C++ (2017) by chrisseaton on Thursday May 23, 2019 @11:17PM (#19998173)
> Also, int foo(void) is illegal in c++.

What makes you think that?

I'm looking at C++ 17, 11.3.5 (4).

> A parameter list consisting of a single unnamed parameter of non-dependent type void is equivalent to an empty parameter list.

What are you looking at?

Re:Near-duplicate features of C++ (2017) by earenndil on Thursday May 23, 2019 @11:56PM (#19998343)
Ah, my mistake. Still, though, it's unidiomatic and rarely (if ever) used.