From ca0dfcd8a4497ade696a0a7fa26a57a604ee91d6 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 30 Apr 2016 18:27:53 +0100 Subject: [PATCH] fix return type --- ostd/algorithm.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ostd/algorithm.hh b/ostd/algorithm.hh index c7df711..83076d5 100644 --- a/ostd/algorithm.hh +++ b/ostd/algorithm.hh @@ -41,7 +41,7 @@ inline bool is_partitioned(R range, P pred) { return true; } -template inline bool is_partitioned(F func) { +template inline auto is_partitioned(F func) { return [func = move(func)](auto &obj) { return is_partitioned(obj, move(func)); }; }