From 9f6d8da9db9e58fe21f0cb899655315ac1920dd9 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 18 Mar 2017 20:04:22 +0100 Subject: [PATCH] allow return of value from scheduler start --- ostd/concurrency.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ostd/concurrency.hh b/ostd/concurrency.hh index d27db6c..0f6d881 100644 --- a/ostd/concurrency.hh +++ b/ostd/concurrency.hh @@ -19,8 +19,8 @@ struct thread_scheduler { } template - void start(F &&func, A &&...args) { - func(std::forward(args)...); + auto start(F &&func, A &&...args) -> std::result_of_t { + return func(std::forward(args)...); } template