I have a class as following:
class MyClass{
public:
void my_method(Eigen::Tensor<double, 5> ¶m);
};
I would like to create a mock:
class MockMyClass {
public:
MOCK_METHOD(void, my_method, (Eigen::Tensor<double, 5>), (override));
};
But I get the error
static assertion failed: This method does not take 2 arguments. Parenthesize all types with unproctected commas.
because of the comma in the Tensor type declaration <double, 5>
. Is there a recommended way to deal with this problem?