trompeloeil
trompeloeil copied to clipboard
Is it possible to mock template methods?
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?
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.