We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The channel class requires that the value type be copyable, so things like unique_ptrs cannot be used with it.
This example (for instance) does not compile:
#include <boost/cobalt.hpp> #include <any> #include <memory> namespace bc = boost::cobalt; struct OnlyOne { OnlyOne() = default; OnlyOne(const OnlyOne&) = delete; OnlyOne( OnlyOne&&) = default; }; bc::task<void> test(){ bc::channel<OnlyOne> c; co_await c.write(OnlyOne()); }
See godbolt
The text was updated successfully, but these errors were encountered:
added move support for channels
dde7f93
Closes #183
Thanks for reporting. I created fixes for both your issues, can you check if they fix all problems?
Sorry, something went wrong.
Thanks for the quick response. Your patch fixed both issues.
9502d09
4ea3252
No branches or pull requests
The channel class requires that the value type be copyable, so things like unique_ptrs cannot be used with it.
This example (for instance) does not compile:
See godbolt
The text was updated successfully, but these errors were encountered: