From 78ffcafc004e5881603711fb98b0bc2f83be5d63 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Fri, 11 Sep 2020 23:40:56 +0200 Subject: [PATCH] fix warning --- ostd/algorithm.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ostd/algorithm.hh b/ostd/algorithm.hh index a440467..2ffd086 100644 --- a/ostd/algorithm.hh +++ b/ostd/algorithm.hh @@ -488,7 +488,7 @@ inline UnaryFunction for_each(InputRange range, UnaryFunction func) { for (; !range.empty(); range.pop_front()) { func(range.front()); } - return std::move(func); + return func; } /** @brief A pipeable version of ostd::for_each().