Hi.
I think the answer is 'no dont be silly' but it's worth asking.
I have a function the returns objects by value. Internally it uses std::move on the return but probably an irrelevant point since elision is there to help.
What this function returns is a type I have mocked. On which I have set expectations.
Firstly, it don't compile
Secondly if it did the expectations wouldn't work because it would be a copy - i guess.
It's annoying to have to return a smart ptr when I really don't want the heap cost and the scope is small.
So is there a gmock way to do what is typical and optimal ?
Regards
Max
--
---
You received this message because you are subscribed to the Google Groups "Google C++ Mocking Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googlemock+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/googlemock/CA%2Bry%2B0Khj2ruc4NThuoO7bBn8VR%3DNFdo6671b0LgV%2BpPUCvrqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.