level 1
无情de欲望
楼主
#include<iostream>
using namespace std;
int main()
{
cout << "hello" << endl;
system("pause");
return 0;
}
f:\vs\vc\include\xtr1common(100): error C2737: “std::is_same_v”: 必须初始化“constexpr”对象
1>f:\vs\vc\include\xtr1common(100): error C2998: “const bool std::is_same_v”: 不能是模板定义
1>f:\vs\vc\include\xtr1common(245): error C2737: “std::is_integral_v”: 必须初始化“constexpr”对象
1>f:\vs\vc\include\xtr1common(245): error C2998: “const bool std::is_integral_v”: 不能是模板定义
1>f:\vs\vc\include\xtr1common(282): error C2737: “std::is_floating_point_v”: 必须初始化“constexpr”对象
1>f:\vs\vc\include\xtr1common(282): error C2998: “const bool std::is_floating_point_v”: 不能是模板定义
1>f:\vs\vc\include\xtr1common(295): error C2737: “std::is_arithmetic_v”: 必须初始化“constexpr”对象
1>f:\vs\vc\include\xtr1common(295): error C2998: “const bool std::is_arithmetic_v”: 不能是模板定义
1>f:\vs\vc\include\xstddef(697): error C2737: “std::is_function_v”: 必须初始化“constexpr”对象
1>f:\vs\vc\include\xstddef(697): error C2998: “const bool std::is_function_v”: 不能是模板定义
1>f:\vs\vc\include\type_traits(524): error C2275: “_To”: 将此类型用作表达式非法
1> f:\vs\vc\include\type_traits(521): note: 参见“_To”的声明
1> f:\vs\vc\include\type_traits(526): note: 参见对正在编译的类 模板 实例化“std::is_assignable<_To,_From>”的引用
1>f:\vs\vc\include\type_traits(524): error C2275: “_From”: 将此类型用作表达式非法
1> f:\vs\vc\include\type_traits(522): note: 参见“_From”的声明
1>f:\vs\vc\include\type_traits(524): error C3861: “__is_assignable”: 找不到标识符
1>f:\vs\vc\include\type_traits(524): error C2975: “_Val”:“std::integral_constant”的模板参数无效,应为编译时常量表达式
1> f:\vs\vc\include\xtr1common(21): note: 参见“_Val”的声明
1>f:\vs\vc\include\type_traits(1245): error C2061: 语法错误: 标识符“__make_integer_seq”
1>f:\vs\vc\include\type_traits(1249): error C2065: “_Vals”: 未声明的标识符
1>f:\vs\vc\include\type_traits(1249): error C2975: “_Vals”:“std::integer_sequence”的模板参数无效,应为编译时常量表达式
1> f:\vs\vc\include\type_traits(1190): note: 参见“_Vals”的声明
1>f:\vs\vc\include\type_traits(1252): error C2061: 语法错误: 标识符“make_integer_sequence”
1>f:\vs\vc\include\type_traits(1261): error C2631: “identity”: 别名模板中不能定义类或枚举
1>f:\vs\consoleapplication1\consoleapplication1\consoleapplication1.cpp : fatal error C1903: 无法从以前的错误中恢复;正在停止编译
1> “F:\vs\VC\bin\CL.exe”中的内部编译器错误
1> 请选择 Visual C++
1> “帮助”菜单上的“技术支持”命令,或打开技术支持帮助文件来获得详细信息
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
谁知道这是怎么了?谢谢
2016年12月09日 11点12分
1
using namespace std;
int main()
{
cout << "hello" << endl;
system("pause");
return 0;
}
f:\vs\vc\include\xtr1common(100): error C2737: “std::is_same_v”: 必须初始化“constexpr”对象
1>f:\vs\vc\include\xtr1common(100): error C2998: “const bool std::is_same_v”: 不能是模板定义
1>f:\vs\vc\include\xtr1common(245): error C2737: “std::is_integral_v”: 必须初始化“constexpr”对象
1>f:\vs\vc\include\xtr1common(245): error C2998: “const bool std::is_integral_v”: 不能是模板定义
1>f:\vs\vc\include\xtr1common(282): error C2737: “std::is_floating_point_v”: 必须初始化“constexpr”对象
1>f:\vs\vc\include\xtr1common(282): error C2998: “const bool std::is_floating_point_v”: 不能是模板定义
1>f:\vs\vc\include\xtr1common(295): error C2737: “std::is_arithmetic_v”: 必须初始化“constexpr”对象
1>f:\vs\vc\include\xtr1common(295): error C2998: “const bool std::is_arithmetic_v”: 不能是模板定义
1>f:\vs\vc\include\xstddef(697): error C2737: “std::is_function_v”: 必须初始化“constexpr”对象
1>f:\vs\vc\include\xstddef(697): error C2998: “const bool std::is_function_v”: 不能是模板定义
1>f:\vs\vc\include\type_traits(524): error C2275: “_To”: 将此类型用作表达式非法
1> f:\vs\vc\include\type_traits(521): note: 参见“_To”的声明
1> f:\vs\vc\include\type_traits(526): note: 参见对正在编译的类 模板 实例化“std::is_assignable<_To,_From>”的引用
1>f:\vs\vc\include\type_traits(524): error C2275: “_From”: 将此类型用作表达式非法
1> f:\vs\vc\include\type_traits(522): note: 参见“_From”的声明
1>f:\vs\vc\include\type_traits(524): error C3861: “__is_assignable”: 找不到标识符
1>f:\vs\vc\include\type_traits(524): error C2975: “_Val”:“std::integral_constant”的模板参数无效,应为编译时常量表达式
1> f:\vs\vc\include\xtr1common(21): note: 参见“_Val”的声明
1>f:\vs\vc\include\type_traits(1245): error C2061: 语法错误: 标识符“__make_integer_seq”
1>f:\vs\vc\include\type_traits(1249): error C2065: “_Vals”: 未声明的标识符
1>f:\vs\vc\include\type_traits(1249): error C2975: “_Vals”:“std::integer_sequence”的模板参数无效,应为编译时常量表达式
1> f:\vs\vc\include\type_traits(1190): note: 参见“_Vals”的声明
1>f:\vs\vc\include\type_traits(1252): error C2061: 语法错误: 标识符“make_integer_sequence”
1>f:\vs\vc\include\type_traits(1261): error C2631: “identity”: 别名模板中不能定义类或枚举
1>f:\vs\consoleapplication1\consoleapplication1\consoleapplication1.cpp : fatal error C1903: 无法从以前的错误中恢复;正在停止编译
1> “F:\vs\VC\bin\CL.exe”中的内部编译器错误
1> 请选择 Visual C++
1> “帮助”菜单上的“技术支持”命令,或打开技术支持帮助文件来获得详细信息
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
谁知道这是怎么了?谢谢




