From 1115fe8b508cc0ded1cb8a36b7cd42d7c9a92c29 Mon Sep 17 00:00:00 2001 From: Alberto Barbati Date: Tue, 29 Sep 2026 09:10:08 +0200 Subject: [PATCH] Fixed example in [exec.cmplsig]/2 The example code used an obsolete way of specifying a sender's completion signatures. Also added `execution::` everywhere, to match the style of the other examples in this section. --- source/exec.tex | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/source/exec.tex b/source/exec.tex index 26a42d6707..db4dba9eb3 100644 --- a/source/exec.tex +++ b/source/exec.tex @@ -6431,14 +6431,18 @@ \begin{example} \begin{codeblock} struct my_sender { - using sender_concept = sender_tag; - using completion_signatures = - execution::completion_signatures< - set_value_t(), - set_value_t(int, float), - set_error_t(exception_ptr), - set_error_t(error_code), - set_stopped_t()>; + using sender_concept = execution::sender_tag; + + template + static consteval auto get_completion_signatures() + -> execution::completion_signatures< + execution::set_value_t(), + execution::set_value_t(int, float), + execution::set_error_t(exception_ptr), + execution::set_error_t(error_code), + execution::set_stopped_t()> { + return {}; + } }; \end{codeblock} Declares \tcode{my_sender} to be a sender