Skip to content
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

Release 1.8, Visual Studio 2015, /std:c++latest and std::tuple in #872

Closed
davidhunter22 opened this issue Sep 9, 2016 · 2 comments
Closed

Comments

@davidhunter22
Copy link

When using 1.8 on Visual Studio 2015 Update 3 I use the /std:c++latest flag which switches on whatever MS has as it's latest standard C++ conformance. One thing this does is put tuple in the std namespace not std::tr. In the documentation there is stuff about "Choosing a TR1 Tuple Library" but this doesn't seem to provide a way to indicate that tuple is available and in std. It would be nice if the googletest headers detected this but I'm not sure how to do this myself.

At present I added -DGTEST_HAS_TR1_TUPLE=0 and -DGTEST_USE_OWN_TR1_TUPLE=0 to the command line. Not sure if this is correct but it seemed to work.

@KindDragon
Copy link
Contributor

KindDragon commented Sep 9, 2016

PR #1218 should fix this by enabling GTEST_HAS_STD_TUPLE_ (through GTEST_STDLIB_CXX11)

@KindDragon
Copy link
Contributor

KindDragon commented Oct 25, 2017

Can be closed. PR #1218 fixed this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants