From 2d2cbcaf1c2afd1565502f8f0c83fb1cd56f6cec Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 9 Dec 2016 17:56:55 +0200 Subject: Fix GCC 5 compilation error, improve scheduler unit test --- build2/scheduler | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'build2') diff --git a/build2/scheduler b/build2/scheduler index 99e9524..80b9ec9 100644 --- a/build2/scheduler +++ b/build2/scheduler @@ -110,7 +110,7 @@ namespace build2 new (&td->data) task { &task_count, decay_copy (forward (f)), - {decay_copy (forward (a))...}}; + typename task::args_type (decay_copy (forward (a))...)}; td->thunk = &task_thunk; } @@ -235,9 +235,12 @@ namespace build2 template struct task_type { + using func_type = std::decay_t; + using args_type = std::tuple...>; + atomic_count* task_count; - std::decay_t func; - std::tuple...> args; + func_type func; + args_type args; template void -- cgit v1.1