aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/maze.tpp3
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,