vs 2015 pro 上没有 C++11?
No C++11 on vs 2015 pro?
我刚刚安装了 Visual Studio 2015 RC Pro 因为我想使用 c++11 的 std::to_string 但它似乎仍然不是 11...
std::cout << _cplusplus << std::endl;
给我 199711。
VS 2015 RC 不应该有 11 个吗?还是我做错了什么?
帮助表示赞赏。
编辑:似乎我想要的不是很清楚,所以这里有更多信息:
我想使用 to_string,c++11 中的一个 std 成员,它将一个 int(在本例中)转换为一个字符串。
std::to_string(5);
给我一个错误:"std has no member to_string"
包括 header <string>
VS2015 仍然不完全支持 C++11,所以 __cplusplus 宏将保持为 97。
我刚刚安装了 Visual Studio 2015 RC Pro 因为我想使用 c++11 的 std::to_string 但它似乎仍然不是 11...
std::cout << _cplusplus << std::endl;
给我 199711。 VS 2015 RC 不应该有 11 个吗?还是我做错了什么? 帮助表示赞赏。
编辑:似乎我想要的不是很清楚,所以这里有更多信息:
我想使用 to_string,c++11 中的一个 std 成员,它将一个 int(在本例中)转换为一个字符串。
std::to_string(5);
给我一个错误:"std has no member to_string"
包括 header <string>
VS2015 仍然不完全支持 C++11,所以 __cplusplus 宏将保持为 97。