Add inline keyword to `iterate()` (#1848)
author이한종/동작제어Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Wed, 4 Jul 2018 07:11:12 +0000 (16:11 +0900)
committer박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Wed, 4 Jul 2018 07:11:12 +0000 (16:11 +0900)
To avoid multiple definition error

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
include/util/kernel/IndexIterator.h

index ea6b488..7dab7d3 100644 (file)
@@ -58,7 +58,7 @@ private:
   const Shape _shape;
 };
 
-IndexIterator iterate(const Shape &shape) { return IndexIterator{shape}; }
+inline IndexIterator iterate(const Shape &shape) { return IndexIterator{shape}; }
 
 template <typename Callable> IndexIterator &operator<<(IndexIterator &&it, Callable cb)
 {