C2977: 'std::tuple' : too many template arguments (MSVC11)

前端 未结 7 1987
清歌不尽
清歌不尽 2020-12-13 03:53

I\'m trying to build googletest with Visual C++ 11, but following code causes an error

template 

        
7条回答
  •  再見小時候
    2020-12-13 04:39

    Setting GTEST_HAS_TR1_TUPLE to 0 in gtest.h helped in my case

    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.

提交回复
热议问题