We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
15445-bootcamp/src/shared_ptr.cpp
Lines 79 to 80 in e2d462b
Might use copy-constructor here?
The text was updated successfully, but these errors were encountered:
// copy-constructed std::shared_ptr<Point> s4 = s3; // copy-assigned std::shared_ptr<Point> s4; s4 = s3;
Sorry, something went wrong.
I totally agree with you too. "std::shared_ptr<Point> s4 = s3; " should be copy-construction, because it is the first time s4 appears.
std::shared_ptr<Point> s4 = s3
"std::shared_ptr<Point> s4; // default construction s4 = s3;" // copy-assignment. and this is the situation where copy-assignment works.
std::shared_ptr<Point> s4;
s4 = s3;
yep, this looks like a typo. would you please submit a pull request? thanks!
No branches or pull requests
15445-bootcamp/src/shared_ptr.cpp
Lines 79 to 80 in e2d462b
Might use copy-constructor here?
The text was updated successfully, but these errors were encountered: