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

Perfect forward val to utMaybe.cpp #4717

Merged
merged 1 commit into from Sep 12, 2022

Conversation

Skylion007
Copy link
Contributor

Something I should have caught in my review of #4715 . The val arg should be perfectly forwarded with a universal reference to utMaybe. This allows the value T to be move assigned which allows both can make it more efficient and also allows utMaybe to work with values that are only move assignable. By using perfect forwarding, it will also just pass the reference if T is a reference.

Sorry for not catching this yesterday @kimkulling

@Skylion007 Skylion007 force-pushed the perfect-forward-utMaybe branch 2 times, most recently from 6bfc929 to 5560646 Compare September 9, 2022 14:53
@kimkulling
Copy link
Member

Not to worry! Thanks you so much for the great review. I will merge it.

Copy link
Member

@kimkulling kimkulling left a comment

Choose a reason for hiding this comment

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

Looks fine.

@kimkulling kimkulling merged commit 7be7e5d into assimp:master Sep 12, 2022
@kimkulling
Copy link
Member

Merged, thanks a lot for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants