You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am confused why the move constructor was declared to have a const shared_ptr&& parameter.
I don't think it can pass the compilation since the value is passed to a shared_ptr& signature function swap .
Could anyone kindly explain whether it was a mistake or I misunderstood?
Thanks!
Your enviroment information
System: MacOS
Compiler version/IDE: Clang 11.0.0
The text was updated successfully, but these errors were encountered:
Exercise information
I am confused why the move constructor was declared to have a
const shared_ptr&&
parameter.I don't think it can pass the compilation since the value is passed to a
shared_ptr&
signature functionswap
.Could anyone kindly explain whether it was a mistake or I misunderstood?
Thanks!
Your enviroment information
The text was updated successfully, but these errors were encountered: