I\'m trying to build googletest with Visual C++ 11, but following code causes an error
template
Setting GTEST_HAS_TR1_TUPLE to 0 in gtest.h helped in my case
GTEST_HAS_TR1_TUPLE
Update: of course, the less intrusive way is to define a precompiler flag GTEST_HAS_TR1_TUPLE=0. Check the answers about _VARIADIC_MAX=10 - solves another half of the issue.
_VARIADIC_MAX=10