diff --git a/sigslot/tasklet.h b/sigslot/tasklet.h index 254467d..969c24e 100644 --- a/sigslot/tasklet.h +++ b/sigslot/tasklet.h @@ -8,6 +8,7 @@ #include #include #include +#include namespace sigslot { template struct tasklet; @@ -103,7 +104,7 @@ namespace sigslot { void resolve() { resolved = true; - if (awaiting) awaiting.resume(); + if (awaiting) resume(awaiting); } virtual ~awaitable_base() = default;