[Core]: add control function references #353
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hmm, this basically should allow us to use weak_ptr's more easily throughout the stack for (Partnered)ControlFunction classes. Because of the way we assign
null_ptr
s to shared_ptr's when we want to indicate no specific control function, this also meant that you don't know if the weak_ptr expired or that it has the "no specific control function" assigned.This is only needed if we still want to continue the journey of destroying a ControlFunction in one place, and then automatically stopping all functionality that depended upon that CF (I think we do want that? not sure tbh)