From a9e09042515e912c43d1d8c6c804f212cc75f548 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=84=9C=EC=83=81=EB=AF=BC/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Thu, 31 May 2018 09:47:06 +0900 Subject: [PATCH] Make iterate() static inline (#1451) This patch makes iterate() static inline function in order to avoid multiple definition issue that could be caused when IndexIterator.h is included in multiple files. Signed-off-by: Sangmin Seo --- include/util/feature/IndexIterator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/util/feature/IndexIterator.h b/include/util/feature/IndexIterator.h index dd029f4..084d29f 100644 --- a/include/util/feature/IndexIterator.h +++ b/include/util/feature/IndexIterator.h @@ -55,7 +55,7 @@ private: const Shape _shape; }; -IndexIterator iterate(const Shape &shape) { return IndexIterator{shape}; } +static inline IndexIterator iterate(const Shape &shape) { return IndexIterator{shape}; } template IndexIterator &operator<<(IndexIterator &&it, Callable cb) { -- 2.7.4