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