cplusplus / sender-receiver

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

The `just_xxx` algorithms have non-`noexcept` `connect` functions #89

Closed ericniebler closed 3 months ago

ericniebler commented 10 months ago

Issue by anthonywilliams Thursday Feb 24, 2022 at 12:35 GMT Originally opened as https://github.com/NVIDIA/stdexec/issues/473


just(42) should not need to throw an exception when connecting any receiver, unless copying that receiver is not noexcept.

The tag_invoke(connect_t,just-sender,some-receiver) functions should be conditionally noexcept, so that if all the types involved are nothrow_move_constructible then connect is noexcept.

lewissbaker commented 3 months ago

I think that the intent of this issue is mostly addressed now in P2300R10. However, there is still a wording bug that means it's not quite doing the right thing.

Closing this issue as it will be addressed by #279.