Skip to content
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

Typo in 07.Object_Oriented_II.pdf #11

Closed
kimsoohwan opened this issue Nov 14, 2023 · 1 comment
Closed

Typo in 07.Object_Oriented_II.pdf #11

kimsoohwan opened this issue Nov 14, 2023 · 1 comment

Comments

@kimsoohwan
Copy link

Hi Federico,

Hope you're doing well.
I think I found another typo. :-)

In the second option on Page 47/61 in 07.Object_Oriented_II.pdf,
I think "swap(this, x);" should be "swap(*this, x);".
The declaration in the next page says "void swap(A& x, A&y);"
and thus instead of passing the this pointer, I think we need to pass the object after dereferencing.

Hope this helpful for improving your work.
Thank you very much again.

Kind regards,
Soohwan

@federico-busato
Copy link
Owner

Hi @kimsoohwan, thanks for the contribution! just updated the slides 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants