【运维经】第53章——‘nullptr’ was not declared in this scope

运维经–目录


‘nullptr’ was not declared in this scope

因为nullptr是c++11新特性,所以编译时需要添加编译参数。

g++ test.cpp -std=c++11
发布了82 篇原创文章 · 获赞 14 · 访问量 9147

猜你喜欢

转载自blog.csdn.net/xk_xx/article/details/104894156
今日推荐