mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-26 21:30:31 +01:00
Restructure header files.
This should prevent the tests from being recompiled.
This commit is contained in:
11
2019/src/implementations.cpp
Normal file
11
2019/src/implementations.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <array>
|
||||
#include "days.hpp"
|
||||
#include "implementations.hpp"
|
||||
|
||||
constexpr const std::array<std::array<aoc2019::solution_t, 2>, 25> SOLUTIONS = {
|
||||
{aoc2019::day01_part1, aoc2019::day01_part2}
|
||||
};
|
||||
|
||||
aoc2019::solution_t aoc2019::get_implementation(int day, bool part2) {
|
||||
return SOLUTIONS.at(day - 1).at((int) part2);
|
||||
}
|
||||
Reference in New Issue
Block a user