diff --git a/xml/issue4448.xml b/xml/issue4448.xml new file mode 100644 index 0000000000..cba85b3bf7 --- /dev/null +++ b/xml/issue4448.xml @@ -0,0 +1,49 @@ + + + + +Do not forward `fn` in `completion_signatures` +
+ +
+Tomasz KamiƄski +05 Nov 2025 +99 + + +Addresses US 230-360 +

`fn` can be called multiple times and therefore should not be forwarded.

+
+ + +

+This wording is relative to . +

+ +
    + +
  1. Modify as indicated:

    + +

    -8-

    +
    +namespace std::execution {
    +  template<completion-signature... Fns>
    +    struct completion_signatures {
    +      template<class Tag>
    +        static constexpr size_t count-of(Tag) { return see below; }
    +
    +      template<class Fn>
    +        static constexpr void for-each(Fn&& fn) {               // exposition only
    +          (std::forward<Fn>(fn)fn(static_cast<Fns*>(nullptr)), ...);
    +        }
    +    };
    +
    +  […]
    +}
    +
    +
  2. +
+ +
+ +