Closed FranckRJ closed 2 years ago
I was also thinking about adding support for reference_wrapper, to store the expected value of the matcher by reference instead of copy. But it may cause issues if you try to mock a function that already take a reference_wrapper as a parameter, so I don't know.
Now expected type doesn't need to be the same (or convertible) to the actual type. And the expected value is moved if possible, instead of always copied.
Should fix #240.