This is a really really rough start but I wanted to pass this by you ...
12 years, 4 months ago
(2012-01-04 02:49:23 UTC)
#1
This is a really really rough start but I wanted to pass this by you first.
For C++98/C++03 where there is no standard "move" mechanism, I think we should
use Koenig resolution to allow a gmock client to override the move function.
With this code change, I can now get the following to compile
class MyMock {
MOCK_METHOD0(TakesOwnership, void(Foo::MoveOnlyType m);
};
Assuming I also declare a
namespace Foo {
MoveOnlyType move(MoveOnlyType m);
}
Issue 5504122: Issue 395" Support for move-only types in Gmock.
Created 12 years, 4 months ago by ajwong
Modified 9 years, 6 months ago
Reviewers: Vlad
Base URL: http://googlemock.googlecode.com/svn/trunk/
Comments: 0