-
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
gtest.h generates error on visual studio 2017 #1036
Comments
Can you try with PR #811? |
That works, thanks! Any reasons why that's not been merged yet? |
IDK, no one responding :) |
Can be closed. PR #1218 fixed this |
Looks like it's not fixed by #1218. With VS 15.5 Preview 5 I still get the warning.
Edit: |
It doesn't look fixed to me. The latest google test available via NUGET is 1.8.2. It's clearly not fixed or the fix hasn't been formally released yet. |
Definitely not fixed yet. |
Still not fixed. |
You can use |
TR1 is gone now, closing |
gtest.h produces error when using visual studio 2017 with the latest standard compiler switch (/std:c++latest). This is because the switch removes the tr1 namespace (while the __cplusplus macro value is still 199711L). Hence gtest fails looking for std::tr1::tuple and friends.
This can be worked around by defining GTEST_HAS_TR1_TUPLE to 0 and GTEST_HAS_STD_TUPLE to 1, although it would be nice if gtest could figure it out itself.
The text was updated successfully, but these errors were encountered: