From 8dce3b211d363df48d83fad34bff3e45913c690c Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 2 Oct 2024 13:49:05 +0100 Subject: [PATCH] Add more context to the new P/R for 4154 --- xml/issue4154.xml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xml/issue4154.xml b/xml/issue4154.xml index 26e5622f70..2d971ec09d 100644 --- a/xml/issue4154.xml +++ b/xml/issue4154.xml @@ -71,12 +71,20 @@ This wording is relative to .
  1. Modify as indicated:

    +
    template<class F>
    +  explicit packaged_task(F&& f);
    +

    +-2- Constraints: +remove_cvref_t<F> is not the same type as +packaged_task<R(ArgTypes...)>. +

    -3- Mandates: is_invocable_r_v<R, Fdecay_t<F>&, ArgTypes...> is `true`.

    -

    -4- Preconditions: +

    +-4- Preconditions: Invoking a copy of `f` behaves the same as invoking `f`.