trompeloeil icon indicating copy to clipboard operation
trompeloeil copied to clipboard

Is it possible to mock template methods?

Open cleeland opened this issue 6 years ago • 1 comments

I have a class with a template method, and I wish to mock that template method. For example:

class MyMockType {
...
  template <typename Lambda>
  auto DoWhileLocked(uint32_t id, Lambda&& some_operation)
  {
    ...
  }
...

Is this possible with trompeloiel?

cleeland avatar Dec 12 '18 17:12 cleeland

Unfortunately, no. Early on, I made some experiments with this, and it looks like it's possible to add, but it would be a major task.

rollbear avatar Dec 30 '18 08:12 rollbear