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

Can't erase on vector<cobalt::promise<void>> #159

Open
rotrida opened this issue Mar 11, 2024 · 6 comments
Open

Can't erase on vector<cobalt::promise<void>> #159

rotrida opened this issue Mar 11, 2024 · 6 comments
Assignees

Comments

@rotrida
Copy link

rotrida commented Mar 11, 2024

I'm using a vector or a deque to wait for my promises to complete.

std::deque<boost::cobalt::promise<void>> session_promisses;

When I try to erase,

session_promisses.erase(session_promisses.begin() + session_index);

I get the following error:

use of deleted function ‘boost::cobalt::detail::promise_receiver& boost::cobalt::detail::promise_receiver::operator=(const boost::cobalt::detail::promise_receiver&)’
[build] 92 | receiver_ = std::move(lhs.receiver_);

@klemens-morgenstern klemens-morgenstern self-assigned this Mar 12, 2024
@klemens-morgenstern
Copy link
Collaborator

It looks like the promises are currently not assignable. I'll fix this, but that won't make it into boost before 1.86. In the meantime a list should work.

klemens-morgenstern added a commit that referenced this issue Mar 15, 2024
@klemens-morgenstern
Copy link
Collaborator

Actually made it into the last release, can you verify the current boost release solved the issue?

@rotrida
Copy link
Author

rotrida commented May 3, 2024 via email

@rotrida
Copy link
Author

rotrida commented May 9, 2024

@klemens-morgenstern,

I believe the fix isn't on boost 1.85. The error is still happening.

@klemens-morgenstern
Copy link
Collaborator

Seems I didn't merge in time. That's a shame.

@rotrida
Copy link
Author

rotrida commented May 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants