Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove user-declared default, copy and move constructors#548

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

rcdailey
Copy link

The defaulted move constructor prevents implicit declaration of the copy assignment operator, which results in compiler errors since std::promise requires it.

All 3 user-declared methods removed here are implicitly declared by the compiler anyway, so no need to default them in the first place.

Relates to#547

Removed the following defaulted constructors:* Default Constructor* Copy Constructor* Move ConstructorThe defaulted move constructor prevents implicit declaration ofthe copy assignment operator, which results in compiler errorssince std::promise requires it.All 3 user-declared methods removed here are implicitly declared bythe compiler anyway, so no need to default them in the first place.Relates tocpp-netlib#547
@rcdaileyrcdaileyforce-pushed theresponse-copy-semantics branch fromb0f60b0 todd69300CompareAugust 6, 2015 22:21
glynos added a commit that referenced this pull requestAug 7, 2015
Remove user-declared default, copy and move constructors
@glynosglynos merged commitd3e884f intocpp-netlib:masterAug 7, 2015
@glynos
Copy link
Member

Thanks!

@rcdaileyrcdailey deleted the response-copy-semantics branchAugust 16, 2015 14:08
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@rcdailey@glynos

[8]ページ先頭

©2009-2025 Movatter.jp