Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to check whether a scheduler is a stdexec scheduler #1406

Open
t3nsor opened this issue Aug 29, 2024 · 1 comment
Open

No way to check whether a scheduler is a stdexec scheduler #1406

t3nsor opened this issue Aug 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@t3nsor
Copy link

t3nsor commented Aug 29, 2024

P2300R10 has derived_from<typename remove_cvref_t<Sch>::scheduler_concept, scheduler_t> as part of the definition of the concept scheduler, but stdexec doesn't have this yet.

This is inconvenient because if I want to check whether some type S is a scheduler that's compatible with stdexec, by evaluating the concept-id stdexec::scheduler<S>, I will always get a hard error if S happens to be a scheduler from some other execution framework: stdexec checks whether it has a schedule member function and then gives a hard error if the result of calling schedule is not a stdexec sender.

@ericniebler
Copy link
Collaborator

this is a very good point. i should loosen the requirement.

@ericniebler ericniebler added the bug Something isn't working label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants