New answers tagged

0

Don't write (void) where you mean (). Stroustrup calls this "an abomination" and it has no purpose in C++. It was necessary in ANSI C in order to adopt C++ declaration syntax while still retaining the old style, but in C++ an empty parameter list means no parameters, pure and simple.


Top 50 recent answers are included