Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2015

Conversation

rcdailey
Copy link

@rcdailey rcdailey commented Aug 6, 2015

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 Constructor

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 cpp-netlib#547
@rcdailey rcdailey force-pushed the response-copy-semantics branch from b0f60b0 to dd69300 Compare August 6, 2015 22:21
glynos added a commit that referenced this pull request Aug 7, 2015
Remove user-declared default, copy and move constructors
@glynos glynos merged commit d3e884f into cpp-netlib:master Aug 7, 2015
@glynos
Copy link
Member

glynos commented Aug 7, 2015

Thanks!

@rcdailey rcdailey deleted the response-copy-semantics branch August 16, 2015 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants