Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

Pointee with overloaded functions #217

Open
kfabian opened this issue Dec 6, 2018 · 0 comments
Open

Pointee with overloaded functions #217

kfabian opened this issue Dec 6, 2018 · 0 comments

Comments

@kfabian
Copy link

kfabian commented Dec 6, 2018

I have the following overloaded mock functions
MOCK_METHOD1_T(function, void(int value));
MOCK_METHOD1_T(function, void(std::shared_ptr pointer));

if expect the call
EXPECT_CALL(*mock_object, function(testing::Pointee(10))).
Times(2);

I can't compile it, because the call of the overloaded function is ambiguous.
How can I solve this problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant