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 forwarding in DTO_INIT createShared function template #727

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LanguidSmartass
Copy link

@LanguidSmartass LanguidSmartass commented Mar 27, 2023

Hello.

I found this issue while trying to use move semantics in my custom DTOs move constructors and discovered that the deduced arguments are always passed by copy. My code just wouldn't compile without this change, because the source objects that I'm moving the data from have their copy constructors deleted.

This PR solves this problem, the tests seem to run fine as well.

@LanguidSmartass LanguidSmartass changed the title Perfect forwarding in DTO_INIT createSharedfunction template Perfect forwarding in DTO_INIT createShared function template Mar 27, 2023
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.

None yet

1 participant