Hacker News new | ask | show | jobs
by plorkyeran 703 days ago
void is an empty type in C++. It's less useful than it could be, but it does exist.
1 comments

void isn't a type. If you try to use it as a type you'll be told "incomplete type".

People who want void to be a type in C++ (proponents of "regular void") mostly want it to be a unit type. If they're really ambitious they want it to have zero size. Generally a few committee meetings will knock that out of them.