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

mutation_branch::load uses cata::nullopt as default for optional values #42965

Merged

Conversation

mqrause
Copy link
Contributor

@mqrause mqrause commented Aug 16, 2020

Summary

SUMMARY: None

Purpose of change

Fixes an oversight from #42932

Describe the solution

Since the load method does the actual initializing of the values, it needs to pass cata::nullopt as default or else the changes from the other PR are mostly pointless.

Describe alternatives you've considered

Testing

Tested if values were actually cata::nullopt before and after the changes.

Additional context

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies labels Aug 16, 2020
@ZhilkinSerg ZhilkinSerg merged commit 10b2315 into CleverRaven:master Aug 16, 2020
@mqrause mqrause deleted the optional_mutation_values_fix branch August 24, 2020 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants