-
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
channel01.cpp : /usr/include/stlab/concurrency/variant.hpp:37:10: fatal error: boost/variant.hpp: No such file or directory #142
Comments
I think you have found a hole in the lib. Could you try to add in file stlab/concurrency/config.hpp below line 58 (#define STLAB_TASK_SYSTEM STLAB_TASK_SYSTEM_PORTABLE) the lines
? I think it does not recognize that it should work with C++17 on Linux. |
After adding the suggested lines below line 58 in file /usr/include/stlab/concurrency/config.hpp :
The compilation gives the following error messages: |
I found the problem: std::optional does not allow an instantiation of a reference type (compared to boost::optional) So you either have to attach the process directly as written below or put it into a struct, that implements the operator(). ` int main() {
} |
After directly attaching the process to the receiving part, the error messages changed |
You have to add to channel.hpp an #include |
After adding in /usr/include/stlab/concurrency/channel.hpp
I close the issue |
Fixed with PR #148 |
Reopend for release note |
Fixed in 1.2.0 |
First example channel taken here: https://github.com/FelixPetriconi/accu2017_course/tree/master/Channels
When compiling:
Do I have to install boost even if I use C++17 ?
Marco
The text was updated successfully, but these errors were encountered: