cplusplus / sender-receiver

Issues list for P2300
Apache License 2.0
20 stars 3 forks source link

in_place_stop_token copy constructor/assignment and destructor #34

Closed ericniebler closed 2 months ago

ericniebler commented 10 months ago

Issue by vasama Friday Nov 10, 2023 at 07:17 GMT _Originally opened as https://github.com/brycelelbach/wg21_p2300_execution/issues/55_


The wording for in_place_stop_token is missing copy constructor and copy assignment and contains a destructor the effects of which are not described.

The reference implementation for in_place_stop_token provides trivial copy, trivial destructor and linear move. This is clearly not according to the specification.

Assuming the intent is for in_place_stop_token to be trivially copyable, the special member functions for copying should be specified defaulted and the destructor removed.

lewissbaker commented 2 months ago

The specification seems to now have trivial copy/move/dtor operations. See http://eel.is/c++draft/stoptoken.inplace.general#1