Restructure header files.

This should prevent the tests from being recompiled.
This commit is contained in:
2019-09-15 13:44:26 +02:00
parent 4f1ddec002
commit c046d5da01
7 changed files with 15 additions and 9 deletions

View 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);
}