This repository contains the code for the solutions of Advent of Code 2022 using Modern C++. The solutions themselves are explained in the daily posts accompanying this repository (linked below).
The repository uses a VSCode devcontainer environment with the Bazel build system. Opening the repository in VSCode with Docker installed on your machine will download and start a devcontainer that can then be used to build and run all the solutions.
Note that since the Bazel project relies on the rules_ll
module to provide C++20 modules, the first time you try to run/build any of the examples, the module will build a patched version of clang (which will take a significant amount of time).
The IntelliSense in the VSCode C++ plugin currently struggles with C++20 modules (bug).
Mastodon | Medium | Substack | |||
---|---|---|---|---|---|
Day 1 | Link | Link | Link | Link | Link |
Day 2 | Link | Link | Link | Link | Link |
Day 3 | Link | Link | Link | Link | Link |
Day 4 | Link | Link | Link | Link | Link |
Day 5 | Link | Link | Link | Link | Link |
Day 6 | Link | Link | Link | Link | Link |
Day 7 | Link | Link | Link | Link | Link |
Day 8 | Link | Link | Link | Link | Link |
Day 9 | Link | Link | Link | Link | Link |
Day 10 | Link | Link | Link | Link | Link |
Day 11 | Link | Link | Link | Link | Link |
Day 12 | Link | Link | Link | Link | Link |
Day 13 | Link | Link | Link | Link | Link |
Day 14 | Link | Link | Link | Link | Link |
Day 15 | Link | Link | Link | Link | Link |
Day 16 | Link | Link | Link | Link | Link |
Day 17 | Link | Link | Link | Link | Link |
Day 18 | Link | Link | Link | Link | Link |
Day 19 | Link | Link | Link | Link | Link |
Day 20 | Link | Link | Link | Link | Link |
Day 21 | Link | Link | Link | Link | Link |
Day 22 | Link | Link | Link | Link | Link |
Day 23 | Link | Link | Link | Link | Link |
Day 24 | Link | Link | Link | Link | Link |
Day 25 | Link | Link | Link | Link | Link |