diff options
author | HampusM <hampus@hampusmat.com> | 2022-02-16 20:03:13 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-02-16 20:03:13 +0100 |
commit | d5612756b98afa43443a210722691c2e07ddfd5c (patch) | |
tree | e8d718654996309b41fe1b00f6a6f13fba93ee0a /src/app | |
parent | 3908dd75438de89ebec2b0737634faf23ce93884 (diff) |
refactor: add compiler warnings
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/maze.tpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/maze.tpp b/src/app/maze.tpp index f0098a1..12422c3 100644 --- a/src/app/maze.tpp +++ b/src/app/maze.tpp @@ -8,6 +8,8 @@ #include <utility> #include <vector> +namespace +{ /** * Returns the neighbours of a position in a maze. * @@ -97,6 +99,7 @@ void pos_to_between(const std::shared_ptr<Vector2> &between_pos, unsigned int co *between_pos -= diff; } } +} // namespace template <typename Element> void matrix_to_maze(Matrix<Element> *matrix, std::shared_ptr<Vector2> start_pos, |