2 ms·
> 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 para
by chrisseaton 8y ago
> 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?
- earenndil 8y agoAh, my mistake. Still, though, it's unidiomatic and rarely (if ever) used.