From 6c82d3a40a212dbcd9b5dce94f97957e1eb04444 Mon Sep 17 00:00:00 2001 From: Matthew Gretton-Dann Date: Wed, 13 Dec 2023 09:07:13 +0000 Subject: [PATCH] 2023 Day 13 Part 1 Add a const --- 2023/puzzle-13-01.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2023/puzzle-13-01.cc b/2023/puzzle-13-01.cc index e26cd99..d4957e4 100644 --- a/2023/puzzle-13-01.cc +++ b/2023/puzzle-13-01.cc @@ -11,7 +11,7 @@ struct Grid void clear() { rows_.clear(); } void push_back(std::string const& row) { rows_.push_back(row); } - [[nodiscard]] auto reflection_point() -> UInt + [[nodiscard]] auto reflection_point() const -> UInt { for (std::size_t row{0}; row < rows_.size() - 1; ++row) { auto top{row};