Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Im using the set-argument-pointee action, and the compiler complains about “conflicting return type specified”. What does it mean?

Action compiler complains mean
0
Posted

Im using the set-argument-pointee action, and the compiler complains about “conflicting return type specified”. What does it mean?

0

You got this error as Google Mock has no idea what value it should return when the mock method is called. SetArgumentPointee() says what the side effect is, but doesn’t say what the return value should be. You need DoAll() to chain a SetArgumentPointee() with a Return(). See this recipe for more details and an example.

0

You got this error as Google Mock has no idea what value it should return when the mock method is called. SetArgPointee() says what the side effect is, but doesn’t say what the return value should be. You need DoAll() to chain a SetArgPointee() with a Return(). See this recipe for more details and an example.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123