Closed FranckRJ closed 2 months ago
Any change of getting this one in? Is there anything outstanding.
Sorry for the late reply. In the original PR I made this comment: https://github.com/eranpeer/FakeIt/pull/280#issuecomment-1303769386
The first two points aren't relevant anymore, but if you could answer the third one it would be nice.
Sorry for the late reply. In the original PR I made this comment: #280 (comment)
The first two points aren't relevant anymore, but if you could answer the third one it would be nice.
Return(T&& t): from what I understand it's to fix an issue when passing rvalues to Return and the return type of the mocked function is a reference, but I have several questions about it, that makes me not too confident about merging it in its current state: why using a new template parameter instead of R like others Return ? I don't think it's a bad idea per se but it's not how others Return a written and change a bit how the method work, I think it may be better to keep it consistent. why do you check that T is copy constructible ? What about move-only types ?
Superseded by #332.
New PR because I can't reopen the old one : https://github.com/eranpeer/FakeIt/pull/280