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

TIG-1779 Let mongocxx::database be a value in the generated PhaseConfig #254

Merged
merged 2 commits into from Jun 26, 2019

Conversation

rtimmons
Copy link
Collaborator

It's currently passed in as const mongocxx::database& but at the call-site it's a value. Treating it as a const allows the PhaseConfig to implicitly copy it as a ref and it prohibits the PhaseConfig from calling non-const methods.

@rtimmons rtimmons requested a review from a team June 26, 2019 18:11
Copy link
Contributor

@guoyr guoyr left a comment

Choose a reason for hiding this comment

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

Good catch

@rtimmons rtimmons merged commit 61d7b36 into master Jun 26, 2019
@rtimmons rtimmons deleted the createactor-db-is-value branch June 26, 2019 19:05
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.

None yet

2 participants