-
Notifications
You must be signed in to change notification settings - Fork 67
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
stlab::async will not accept non-const reference parameters #80
Comments
Already fixed on develop branch. |
Reopened - bug doesn't specify platform and if still repeatable in develop branch could be an issue with a platform executor. |
Hi, |
Apologies - when I tried it the code in the gist the failing portions were commented out - didn't realize I had to uncomment them to see the failure. I just added a PR #81 which I believe addresses the problem. This one was challenging! |
My apologies about the original repro. I was running out the door to meet someone waiting for a training session in the park and rushed to get this to you. Your PR compiles for me here. The template stuff does look hairy. Thank you so much :-). |
This issue has been fixed in master as of the 1.1 release. |
std::async()
allows passing non-const reference parameters by wrapping them instd::ref
.stlab::async()
fails to compile if given non-const reference parameters, whether naked or wrapped instd::ref
.Platform and Toolchain
Selected extracts from Clion build of repro with
-v
flagRepro
A simple example showing this is here: https://gist.github.com/ahcox/0e76d32a0a87ac24160bf50298052a1d
The log from the compile failure is here: https://gist.github.com/ahcox/9ce507f383ec7820fc245f9ea90297ee
The text was updated successfully, but these errors were encountered: