you need to add "-std=c++11" to your compiler arguments, telling it that it is a C++11 compile
$ g++ -std=c++11 your_file.cpp -o your_program
If you are using some IDE, you need to search the documentation to find out how to add this line so the compiler knows.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…