为什么我的VS2013 编译器还是199711而不是201103L
卓洛王子 2014-09-22 12:17:02 #include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
#ifndef __cplusplus
cout<<R"(C++预定义符出错)"<<endl;
#endif
#if __cplusplus < 201103L
cout << R"(不支持C++11)" << "\t"<< __cplusplus << endl;
#else if
cout << R"(支持C++11)" << endl;
#endif
return 0;
}
本地环境:win8.1 +VS2012+VS2013,大家有遇到这种情况吗?如果这样子不按照标准的情况办支持C++11语法,那如果解决混编的问题还是暂时放弃新语法特性或者直接使用混编形式?