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

VS2012下模拟仿真出现以下错误 #4

Closed
liangjn2015 opened this issue Jun 19, 2018 · 1 comment
Closed

VS2012下模拟仿真出现以下错误 #4

liangjn2015 opened this issue Jun 19, 2018 · 1 comment

Comments

@liangjn2015
Copy link

3rd\gtest\googletest\include\gtest/gtest-printers.h(670) : error C2977: “std::t
uple”: 模板 参数太多
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\utility(7
3) : 参见“std::tuple”的声明

@xianjimli
Copy link
Member

折腾了半天,发现Visual Studio 2012及之前的版本不行。主要原因有三:

  1. 参数太多。可以通过定义宏(_VARIADIC_MAX=10)来解决。
    2.变量只能在块头定义。需要改第三方代码,导致以后更新困难。
    3.结构成员不支持按名称初始化。

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

2 participants