-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
std::unique_ptr
概念描述不够清晰
#282
Comments
事实上 std::unique_ptr 只能 "一定程度上的" 帮助用户防止内存泄漏, 而 首先, C++ 本身无法禁止用户使用同一个指针构造多个智能指针(甚至可以是不同类型的智能指针), 所以说粗略的把 "智能指针" 和 "安全" 混为一谈是一种不现实的痴心妄想, |
大佬 fork 一个单独的版本吧 |
Thanks and PR welcome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
原文:
这里的逻辑经不起推敲,且描述不够好。
The text was updated successfully, but these errors were encountered: