Skip to content

Commit b7e9f08

Browse files
burblebeetkoeppe
authored andcommitted
LWG4154 The Mandates for std::packaged_task's constructor from a callable entity should consider decaying
1 parent 0c9a45f commit b7e9f08

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

source/threads.tex

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11861,16 +11861,13 @@
1186111861

1186211862
\pnum
1186311863
\mandates
11864-
\tcode{is_invocable_r_v<R, F\&, ArgTypes...>} is \tcode{true}.
11865-
11866-
\pnum
11867-
\expects
11868-
Invoking a copy of \tcode{f} behaves the same as invoking \tcode{f}.
11864+
\tcode{is_invocable_r_v<R, decay_t<F>\&, ArgTypes...>} is \tcode{true}.
1186911865

1187011866
\pnum
1187111867
\effects
11872-
Constructs a new \tcode{packaged_task} object with a shared state and
11873-
initializes the object's stored task with \tcode{std::forward<F>(f)}.
11868+
Constructs a new \tcode{packaged_task} object with
11869+
a stored task of type \tcode{decay_t<F>} and a shared state.
11870+
Initializes the object's stored task with \tcode{std::forward<F>(f)}.
1187411871

1187511872
\pnum
1187611873
\throws

0 commit comments

Comments
 (0)