How do I set a repl to C++17?
We use Nix as our system-wide package manager. Currently, Nix only goes up to C++16.
To set up C++16 in a Repl, you can edit the nix channel property of the
.replit file to
stable-23_05 and set the package in
Here is the ink to an example: https://replit.com/@ShaneAtReplit/CPlusPlus
clang to use C++ 17, add/change the
-std flag in
Makefile. You could do this by running in Shell:
sed -i '/override CXXFLAGS/s/-std=[^[:blank:]]+|$/-std=c++17/' Makefile
You could even change