Why does GCC 6.3 compile this Braced-Init-List code without explicit C++11 support?

巧了我就是萌 提交于 2019-12-03 10:55:34
NathanOliver- Reinstate Monica

The default compiler command for gcc 6.x is -std=gnu++14, so the compiler is implicitly compiling your code using a later version of the C++ language standard.

You will need to manually specify -std=c++03 if you want to compile in C++03.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!