I was given a piece of code that uses void() as an argument. The code doesn\'t compile... obviously?
void()
Can we instantiate anything of type void
void
C++ (and I say C++, not C) allows (§6.6.3 comma 2) functions with void return type to return a void expression, that is:
void foo() { return void(); }
But notice it is not constructing a temporary void!