下面的代码可以编译运行,但是VS2015 intellisense会报错。g++ & eclipse 有同样的问题(编译&运行但显示错误)
有谁知道如何修理它?我尝试在谷歌上搜索但没有希望。这个错误有点烦人.. :-)
#include <iostream>
#include <thread>
#include <chrono>
using namespace std;
using namespace std::literals;
using namespace chrono_literals;
int main()
{
this_thread::sleep_for(5s);
cout << "test \n";
return 0;
}
错误消息:“整数文字上的后缀 's' 无效”
非常感谢!