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

Chonk, NodeUtils: Fixed Linux gcc compile bugs #2386

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

emminizer
Copy link
Contributor

Fixed compile bugs seen on Linux side:

  • ChonkDrawable is now forward declared. Previously it was mentioned below in a friend class ChonkDrawable but gcc doesn't treat that the same as a class ChonkDrawable declaration, though MSVC accepts it.
  • Lambdas are now passed by const reference instead of non-const reference. The Lambda gets copied anyways, so const is fine, and allows for r-values. MSVC also lets you get away without the const but probably shouldn't.

No functionality changes, just compiler fixes.

@gwaldron gwaldron merged commit c54ac65 into gwaldron:master Nov 22, 2023
3 checks passed
@emminizer emminizer deleted the fix-linux branch April 25, 2024 14:13
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.

2 participants