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
{{ message }}
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.
class FatherClass {
public:
int field;
...
};
class SonClass : public FatherClass {
...
};
class SomeClass {
virtual int m_service(FatherClass*){};
};
class MockSomeClass : public SomeClass {
MOCK_METHOD1(m_service, int(FatherClass*));
};
int main(void) {
MockSomeClass object;
}
Compilation error:
error: invalid conversion from ‘FatherClass*’ to ‘const SonClass*’ [-fpermissive]
The text was updated successfully, but these errors were encountered: