From 696b97147c2e399be7a95cc5a983294eebc84ff0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 25 Jun 2022 16:19:02 +0200 Subject: refactor: make cell helper find_neighbour_cells return std::vector --- src/interfaces/cell_helper.hpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/interfaces/cell_helper.hpp') diff --git a/src/interfaces/cell_helper.hpp b/src/interfaces/cell_helper.hpp index 141d905..d814aa7 100644 --- a/src/interfaces/cell_helper.hpp +++ b/src/interfaces/cell_helper.hpp @@ -8,6 +8,7 @@ #include #include +#include // NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) class ICellHelper @@ -22,14 +23,8 @@ public: get_birth_cell_positions(const std::list &cell_positions) const noexcept -> std::list = 0; - /* - [[nodiscard]] virtual auto - find_neighbour_cells(const Vector2 &cell_pos) const noexcept - -> std::list = 0; - */ - [[nodiscard]] virtual auto find_neighbours(const Vector2 &cell_pos) const noexcept - -> std::list = 0; + -> std::vector = 0; }; template -- cgit v1.2.3-18-g5258