-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mock method with multiple arguments returning std::unique_ptr fails on MSVC14 #799
Comments
C++11 features are only enabled if the compiler provides the right Otherwise, you could just force it by setting GTEST_LANG_CXX11 to 1 in your _Sam On Wed, Jun 15, 2016 at 1:34 PM, Torbjörn Klatt notifications@github.com
|
That was a perfect hint! Thanks a lot! 👍 In deed, Visual Studio 2015 (i.e. v140 / MSVC14 / _MSC_VER == 1900) has I'll try to prepare a PR. Either for the header file |
I think this should be fixed in PR #811 |
Can be closed. PR #1218 fixed this |
Mocking a method returning a
std::unique_ptr
does not compile with MSVC14 (i.e. Visual Studio 2015, v140). Works well with GCC 5.3.The problem is with the mocked method taking three arguments (
MOCK_METHOD3
).I'm not sure, whether this is me being dumb using gmock or whether it is a compiler bug. In case it is the latter, is it in the scope of GTest/GMock to work around this?
The text was updated successfully, but these errors were encountered: