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

Add support for mocking functions with rvalue arguments. #37

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

mstaz
Copy link
Contributor

@mstaz mstaz commented Mar 26, 2020

Added std::forward at specific places to move the arguments when
necessary.
This would solve issue #11.
Although all unit-tests run fine, I'm unsure if these changes would have any side effects. E.g. if there are cases where the argument value is still required after invoking the function.

Added std::forward at specific places to move the arguments when
necessary.
@krzysztof-jusiak krzysztof-jusiak merged commit 6867728 into cpp-testing:master Mar 26, 2020
@krzysztof-jusiak
Copy link
Contributor

Nice one, thanks @mstaz 👍

@mstaz mstaz deleted the add-gmock-rvalue-support branch March 26, 2020 15:54
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