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
Master fixes #3022
Master fixes #3022
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@@ -316,6 +316,8 @@ namespace lcos { | |||
: ptr_(o.ptr_.release(), &wrapping_deleter) | |||
{} | |||
|
|||
keep_alive& operator=(keep_alive&& o) = default; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a default copy assignment operator as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. This thing is obviously not copyable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, that's not really obvious to me. If the intention is to inhibit copying, add a =delete
for the corresponding functions.
It's already implicitly deleted due to the `unique_ptr` member. This is an
internal helper only anyways and not intended for public use.
|
Ok, you're right. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Small fixes to master: