Skip to content

Conversation

@RyadaProductions
Copy link
Contributor

What kind of change does this PR introduce?
Code API change to move to a method signature that returns an optional instead of being invoked with a pass by ref parameter that is then set.

Is there an open issue that this resolves?
563.

What is the current behavior?
Method signature is generally something along the lines of:
bool TrySomething(T& outParam);

What is the new behavior (if this is a feature change)?
New method signature most of the time is now:
std::optional<T&> TrySomething()

Does this PR introduce a breaking change?
Yes this breaks the API in multiple spots but generally not for the end user yet as it's mostly isolated in engine code.

@RyadaProductions RyadaProductions changed the title Replace Try methods that use out ref to pass the value to std optional [WIP] Replace Try methods that use out ref to pass the value to std optional Jun 29, 2023
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.

1 participant