int foo(int){
...
}
Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One case where you define a function but do not name the parameter is given in Scott Meyers’s “Effective C++, 3rd edition”, Item 47:
is used in:
Essentially, the third parameter in doAdvance is a type unaccompanied by a variable name, i.e. it is an unnamed parameter. Having an unnamed parameter isn’t a problem, since that argument is only used during the resolution of which overloaded function to use. I discuss these topics in this related SO question.