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

refactor: only define constructors for Client types #418

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented Jun 18, 2024

The Client types that follow pimpl idiom had warnings that they needed to define destructors as well to satisfy the rule of five.

We don't need to define move/copy/copy-assign/move-assign for these at all, instead we can follow the rule of zero since the only member is a std::unique_ptr.

@cwaldren-ld cwaldren-ld marked this pull request as ready for review June 18, 2024 17:53
@cwaldren-ld cwaldren-ld requested a review from a team June 18, 2024 17:53
@cwaldren-ld cwaldren-ld merged commit f719d78 into main Jun 20, 2024
42 checks passed
@cwaldren-ld cwaldren-ld deleted the cw/sc-247239/rule-of-zero branch June 20, 2024 17:59
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