From 6622e436442e37190c43aa40770f0f01bc2427e9 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 11 Dec 2016 13:39:33 +0100 Subject: Move non-template classes into distinct compilation units --- src/util/box_traverser.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/util/box_traverser.h') diff --git a/src/util/box_traverser.h b/src/util/box_traverser.h index cb7dfeb..d59d871 100644 --- a/src/util/box_traverser.h +++ b/src/util/box_traverser.h @@ -1,6 +1,7 @@ #ifndef LIFE_SRC_UTIL_BOX_TRAVERSER_ #define LIFE_SRC_UTIL_BOX_TRAVERSER_ +#include #include #include "box_indicator.h" @@ -11,13 +12,7 @@ namespace util { struct BoxTraverser : public BoxIndicator { using BoxIndicator::BoxIndicator; - void for_each(const std::function f) const { - for ( std::size_t x = this->a_x_; x < this->b_x_; x++ ) { - for ( std::size_t y = this->a_y_; y < this->b_y_; y++ ) { - f(x, y); - } - } - } + void for_each(const std::function& f) const; }; } -- cgit v1.2.3