Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Replace static_cast of forwarding references with std::forward #967

Merged
merged 5 commits into from
Oct 23, 2024

Conversation

greg7mdp
Copy link
Contributor

@greg7mdp greg7mdp commented Oct 22, 2024

When stepping through eos-vm code, I noticed some incorrect static_cast and std::move usages, which don't seem to hide bugs because these functions are called with references which are afterwards unused. Still this seems worthwhile fixing imo.

I linked this PR to issue #958, since these changes came to mind when investigating that issue, but this PR doesn't resolve the issue (that would be PR #965 )

@greg7mdp greg7mdp requested a review from spoonincode October 22, 2024 18:37
@greg7mdp greg7mdp marked this pull request as draft October 22, 2024 18:49
@greg7mdp greg7mdp linked an issue Oct 22, 2024 that may be closed by this pull request
@greg7mdp greg7mdp marked this pull request as ready for review October 22, 2024 20:27
@greg7mdp greg7mdp requested a review from heifner October 22, 2024 20:27
Copy link
Member

@heifner heifner left a comment

Choose a reason for hiding this comment

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

Need an eos-vm PR for the eos-vm changes.

@greg7mdp
Copy link
Contributor Author

Need an eos-vm PR for the eos-vm changes.

Yes, thanks. AntelopeIO/eos-vm#27

@greg7mdp greg7mdp requested a review from linh2931 October 23, 2024 13:18
@greg7mdp greg7mdp merged commit d32c0cf into main Oct 23, 2024
36 checks passed
@greg7mdp greg7mdp deleted the move_correctness branch October 23, 2024 14:49
@ericpassmore
Copy link
Contributor

Note:start
category: System Stability
component: Internal
summary: Replace static_cast of forwarding references with std::forward.
Note:end

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants