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

Rewrite make_from_state as a function object #384

Merged
merged 1 commit into from
May 23, 2024

Conversation

nahueespinosa
Copy link
Member

@nahueespinosa nahueespinosa commented May 23, 2024

Proposed changes

This change improves compatibility with older GCC versions (9.3) that struggle to deduce the type of instantiated template functions when they are passed as arguments.

Type of change

  • 🐛 Bugfix (change which fixes an issue)
  • 🚀 Feature (change which adds functionality)
  • 📚 Documentation (change which fixes or extends documentation)

Checklist

  • Lint and unit tests (if any) pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All commits have been signed for DCO

Additional comments

Minimal examples that checks compatibility with GCC 9.3:
Before: https://godbolt.org/z/b1EzfKa75
After: https://godbolt.org/z/9eYzWhEqK

This change improves compatibility with older GCC versions (9.3) that
struggle to deduce the type of instantiated template functions when
they are passed as arguments.

Signed-off-by: Nahuel Espinosa <nespinosa@ekumenlabs.com>
@nahueespinosa nahueespinosa added bug Something isn't working cpp Related to C++ code labels May 23, 2024
@nahueespinosa nahueespinosa self-assigned this May 23, 2024
Copy link
Collaborator

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

image

@nahueespinosa nahueespinosa merged commit 06c5e84 into main May 23, 2024
10 checks passed
@nahueespinosa nahueespinosa deleted the nahuel/make-from-state-function-object branch May 23, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cpp Related to C++ code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants