Skip to content

Typo in 07.Object_Oriented_II.pdf #11

@kimsoohwan

Description

@kimsoohwan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions