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
@archibate
下面两行代码是不是写反了:
course/02/24/3.cpp
Lines 13 to 14 in 3940bba
是不是应该先获取裸指针,再使用std::move移交拥有权,如下:
std::move
child->m_parent = parent.get(); parent->m_child = std::move(child); // 移交 child 的所属权给 parent
The text was updated successfully, but these errors were encountered:
说的对!感谢提醒。
Sorry, something went wrong.
No branches or pull requests
@archibate
下面两行代码是不是写反了:
course/02/24/3.cpp
Lines 13 to 14 in 3940bba
是不是应该先获取裸指针,再使用
std::move
移交拥有权,如下:child->m_parent = parent.get(); parent->m_child = std::move(child); // 移交 child 的所属权给 parent
The text was updated successfully, but these errors were encountered: