In the try catch statement we can do:
try{} catch(...){} As far as I know, ... means any exception.
My question is: Why the C++ standard chose this way (...) instead of just ()? while, for example, in functions if you do not need parameters you just put ():
void foo(); Is it related to variadic templates in any way?
()means(void)it doesn't mean any argument but rather a parameter list with no argument.defaultkey-word in a similar way of switches...