Skip to content
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

Merged
merged 2 commits into from Nov 24, 2017
Merged

Master fixes #3022

merged 2 commits into from Nov 24, 2017

Conversation

sithhell
Copy link
Member

Small fixes to master:

  • cosmetic addition of promise_lco::keep_alive default move assignment
  • Fixing c&p errors for operator> in optional after constexpr 'fixes'

Copy link
Member

@hkaiser hkaiser left a 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;

Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

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.

@sithhell
Copy link
Member Author

sithhell commented Nov 23, 2017 via email

@hkaiser
Copy link
Member

hkaiser commented Nov 23, 2017

Ok, you're right.

Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@sithhell sithhell merged commit 4685364 into master Nov 24, 2017
@sithhell sithhell deleted the master_fixes branch November 24, 2017 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants