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

Problem compiling wait_any task #27

Closed
bloomen opened this issue Apr 30, 2020 · 1 comment
Closed

Problem compiling wait_any task #27

bloomen opened this issue Apr 30, 2020 · 1 comment

Comments

@bloomen
Copy link
Owner

bloomen commented Apr 30, 2020

This following code doesn't compile when it should:

TEST_CASE("make_task_wait_any_with_different_types") {
    auto t1 = tw::make_value_task(42);
    auto t2 = tw::make_value_task(42.0);
    auto t3 = tw::make_task(tw::wait_any, []{}, t1, t2);
}

Currently, it only compiles when all parents have the same return type.

@bloomen
Copy link
Owner Author

bloomen commented Mar 1, 2021

Not a bug, expected behavior.

@bloomen bloomen closed this as completed Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant