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)); }; }