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

Pointee with overloaded functions #217

Description

@kfabian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions