Skip to content

Move the existing value to "removed" argument; removed is optional (could be nullptr) #736

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 2 commits into from
Jan 30, 2018

Conversation

maxim-ky
Copy link
Contributor

@maxim-ky maxim-ky commented Jan 29, 2018

Hi guys,

There're two commits here.
The first one could be considered to be a minor bug fix (std::move).
The second one is disputable. It slightly changes Value::removeMember interface, so it could take nullptr as the "removed" argument. It seems to be a pretty common use case since that extra returned value is not needed for everyone. Also, changing tons of code to support the new removeMember interface could be much easier with this nullptr-feature.

Regards

@maxim-ky maxim-ky force-pushed the master branch 2 times, most recently from c49f636 to f9d0635 Compare January 29, 2018 13:55
@BillyDonahue
Copy link
Contributor

looks good to me

@cdunn2001 cdunn2001 merged commit 07a324f into open-source-parsers:master Jan 30, 2018
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.

3 participants