diff --git a/compile_commands.json b/compile_commands.json index 4b139ee..a808858 100644 --- a/compile_commands.json +++ b/compile_commands.json @@ -2,6 +2,7 @@ { "arguments": [ "/run/current-system/sw/bin/clang++", + "-std=c++23", "-resource-dir", "/nix/store/k2s6xfca52n25yb8b6f58i87kszp3m7g-clang-wrapper-21.1.2/resource-root", "-idirafter", diff --git a/main.cpp b/main.cpp index f8b829c..01ed3a0 100644 --- a/main.cpp +++ b/main.cpp @@ -1,5 +1,6 @@ #include +#include int main() { - std::cout << "Hello, world!" << std::endl; + std::println("Hello, world!"); } diff --git a/run.sh b/run.sh index 80ab595..120684f 100755 --- a/run.sh +++ b/run.sh @@ -2,6 +2,6 @@ rm a.out -clang++ main.cpp +clang++ -std=c++23 main.cpp ./a.out