diff --git a/run b/run index 81a90e0..660819a 100755 --- a/run +++ b/run @@ -83,6 +83,7 @@ run() { # C[++] fam specifics default_debugger CFLAGS="-Wall" + CPPSTD="-std=c++20" if [[ $DEBUG == true ]]; then CFLAGS+=" -g -O0" else @@ -102,7 +103,7 @@ run() { fi elif [[ ${FILE#*.} == cpp ]]; then - "${CXX:=g++}" ${CFLAGS} "$FILE" -o "${FILE%%.*}.out" + "${CXX:=g++}" ${CPPSTD} ${CFLAGS} "$FILE" -o "${FILE%%.*}.out" if [[ $DEBUG == true ]]; then "$debugger" "${FILE%%.*}.out" elif [[ $COMPILE != true ]]; then