Skip to content

Commit

Permalink
Use c++17 everywhere (kth-competitive-programming#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanRenison authored and kuroni committed Apr 3, 2024
1 parent dcfeb34 commit d8611bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content/contest/.bashrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
alias c='g++ -Wall -Wconversion -Wfatal-errors -g -std=c++14 \
alias c='g++ -Wall -Wconversion -Wfatal-errors -g -std=c++17 \
-fsanitize=undefined,address'
xmodmap -e 'clear lock' -e 'keycode 66=less greater' #caps = <>
2 changes: 1 addition & 1 deletion doc/scripts/compile-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DIR=${1:-.}

# use a precompiled header for the template to improve perf
g++ -Wall -Wextra -Wfatal-errors -Wconversion -std=c++14 -x c++-header $DIR/content/contest/template.cpp
g++ -Wall -Wextra -Wfatal-errors -Wconversion -std=c++17 -x c++-header $DIR/content/contest/template.cpp
trap "rm -f $DIR/content/contest/template.cpp.gch" EXIT

SCRIPT_DIR=$DIR/doc/scripts
Expand Down
2 changes: 1 addition & 1 deletion doc/scripts/test-compiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ echo "
#include \"../content/contest/template.cpp\"
#include \"../$FILE\"
" >build/temp.cpp
g++ -Wall -Wextra -Wfatal-errors -Wconversion -std=c++14 build/temp.cpp && rm a.out build/temp.cpp
g++ -Wall -Wextra -Wfatal-errors -Wconversion -std=c++17 build/temp.cpp && rm a.out build/temp.cpp

0 comments on commit d8611bb

Please sign in to comment.