compile with c++11 g++ code example Example: g++ compile c++11 $ g++ -std=c++11 your_file.cpp -o your_program