asio-tr2 icon indicating copy to clipboard operation
asio-tr2 copied to clipboard

[async.use.future.members] defined in terms of invalid completion signature

Open jwakely opened this issue 9 years ago • 1 comments

[async.use.future.members] says

Let Args... by the completion signature of H

I think "by" should be "be"

More importantly, a completion signature should be a call signature like R(Args...), not just a pack expansion.

I haven't been able to think of a fix for the wording, because if I understand correctly the choice of R is arbitrary here, it isn't actually used because the return_type only depends on result_of_t<_Func(decay_t<_Args>...)> not R.

Maybe something like ...

Let R(Args...) by the completion signature of an asynchronous operation using H

jwakely avatar Oct 06 '15 13:10 jwakely

Applied suggested fix in c231e29881e383f1bce93d3c63170fd551e3adff.

chriskohlhoff avatar Oct 06 '15 20:10 chriskohlhoff