https://github.com/tcbrindle/advent_of_code_2018
C++17/20 solutions for 2018's Advent of Code
https://github.com/tcbrindle/advent_of_code_2018
advent-of-code-2018 cplusplus-17 cplusplus-20
Last synced: 4 months ago
JSON representation
C++17/20 solutions for 2018's Advent of Code
- Host: GitHub
- URL: https://github.com/tcbrindle/advent_of_code_2018
- Owner: tcbrindle
- Created: 2018-12-10T01:46:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T22:41:51.000Z (over 6 years ago)
- Last Synced: 2025-01-06T05:28:41.463Z (6 months ago)
- Topics: advent-of-code-2018, cplusplus-17, cplusplus-20
- Language: C++
- Homepage:
- Size: 162 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C++17/20 solutions to Advent of Code 2018 #
This repository contains my solutions to [Advent of Code 2018](https://adventofcode.com/2018/). The code is written in C++17, making use of some libraries implementing C++20 features.
The source file(s) for each day are in their own directories. There is no build system or anything like that: just `cd` to a directory and compile using the command line. The solutions have been tested with GCC 8 and Clang 7. They may or may not work with MSVC.
To save typing, the file `common.hpp` in this directory `#include`s many headers which are re-used in most of the solutions. You may wish to precompile this file to improve your build times.
## Libraries ##
* [**NanoRange**](https://github.com/tcbrindle/nanorange)
- Implementation of the C++20 `std::ranges` proposals
- Author: me
- Licence: Boost* [**{fmt}**](https://github.com/fmtlib/fmt)
- String formatting and printing that's appoximately a billion times better than iostreams
- Author: Victor Zverovich
- Licence: BSD* [date](https://github.com/HowardHinnant/date)
- Extension of `std::chrono` to handle dates and time zones
- Author: Howard Hinnant
- Licence: MIT