From 4df6ee45332028925e7065e4de31e0b274ae11d5 Mon Sep 17 00:00:00 2001 From: ajet Date: Mon, 15 Dec 2025 18:28:27 -1000 Subject: [PATCH] universal initialization syntax --- src/day7.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/day7.cpp b/src/day7.cpp index e87b055..26a1628 100644 --- a/src/day7.cpp +++ b/src/day7.cpp @@ -47,7 +47,7 @@ Location find_start(const Grid &grid) { uint64_t part_1(const Grid &grid) { uint64_t ans{0}; - Location start = find_start(grid); + Location start{find_start(grid)}; const auto [start_row, start_col]{start}; std::set cols{}; cols.insert(start_col); @@ -69,7 +69,7 @@ uint64_t part_1(const Grid &grid) { void insert_or_increment(std::map &cols, size_t col, uint64_t value) { - auto iter = cols.find(col); + auto iter{cols.find(col)}; if (iter == cols.end()) { cols.insert({col, value}); } else {