-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exercise 6.53 #188
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Exercise information
Exercise 6.53
Question or Bug
Answer is "illegal" in https://github.com/pezy/CppPrimer/blob/master/ch06/README.md#exercise-653 .
But I think the second one is a legal redeclaration. Compiler treats them as one function. It will not make any warning as long as they don't have their own definitions which will trigger a redefinition error.
Your enviroment information
Tested on an online compiler.
https://www.onlinegdb.com/online_c++_compiler
The text was updated successfully, but these errors were encountered: