Closed RusYus closed 10 months ago
Since you use RETURN
, the variable checker
is captured by value which is const in the body of the RETURN expression. You probably want to use LR_RETURN
here, to ensure that you return a reference to the instance and not a copy of it.
Thanks, it works now!
I have an interface with a method that returns a reference to itself
and mock struct
I have a compilation error when using REQUIRE_CALL: