You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've looked into making the auto_ptr case compile for unique_ptr and I got mostly stuck with OnCall with returns. You can only return it once - because then it's gone. Not sure if I committed that change though; I think I haven't.
The tuple const-ness is an issue that needs fixing. I think it shouldn't be const in most cases actually. You'll run into issues with in/out parameters though.
For returning move only types, either once is OK or a generator must be used. Do(...) can be used for that, so that seems reasonable. Out parameters makes no sense for a move only types, so that that doesn't compile also seems reasonable.
It would be very useful if functions with move only types such as uinique_ptr could be mocked.
I've tried to see where the problems are. Part of the problem is missing forwarding or moving
Those can easily be changed. The more problematic issue is with constness.
With that "hack" the following code compiled.
MockRepository mocks; auto foo = mocks.Mock<IFoo>(); mocks.ExpectCall(foo, IFoo::bar);
The text was updated successfully, but these errors were encountered: