aboutsummaryrefslogtreecommitdiff
path: root/src/2015/day6/aoc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2015/day6/aoc.cpp')
-rw-r--r--src/2015/day6/aoc.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/2015/day6/aoc.cpp b/src/2015/day6/aoc.cpp
index f0ed3a5..71de802 100644
--- a/src/2015/day6/aoc.cpp
+++ b/src/2015/day6/aoc.cpp
@@ -2,13 +2,13 @@
namespace aoc2015 {
std::pair<int, int> day6(line_view file) {
- grid<Bit, 1000> grid1;
- grid<int8_t, 1000> grid2;
+ grid<Bit, 1000>* grid1 = new grid<Bit,1000>;
+ grid<int8_t, 1000>* grid2 = new grid<int8_t, 1000>;
per_line(file, [&grid1, &grid2](line_view lv) {
- grid1.parse(lv);
- grid2.parse(lv);
+ grid1->parse(lv);
+ grid2->parse(lv);
return true;
});
- return {grid1.store_.count(), grid2.store_.count()};
+ return {grid1->store_.count(), grid2->store_.count()};
}
} // namespace aoc2015