Visual Studio 2015中的C ++ IDE [英] C++ IDE in Visual Studio 2015
问题描述
Visual Studio 2015中的C ++ IDE始终将多个标识符标记为未定义,但标识符已正确包含在标头中.
是否存在设置或缺少的内容,或者代码确实不可靠?
这里是一个示例>
以下声明
虚拟字符串funName()const;
导致错误消息标识符字符串未定义"
但是,包含的头文件包含以下声明
typedef std :: basic_string< Char>字符串;
已定义Char的地方.
任何人都了解为什么虚拟字符串"会产生错误吗?声明引起问题吗?
The C++ IDE in Visual Studio 2015 keeps flagging several identifiers as undefined, but the identifiers are correctly defined in included headers.
Is there a setting or something that I am missing or is the code really flaky?
Here is an example
The following declaration
virtual String funName() const;
resulted in an error message that "identifier String is undefined"
However, an included header file contains the following declaration
typedef std::basic_string<Char> String;
where Char has been defined.
Does anybody understand why the "virtual String" declaration is causing problem?
这篇关于Visual Studio 2015中的C ++ IDE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!