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
In the file examples/asio/yield.hpp there is the line
examples/asio/yield.hpp
thread_local yield_t yield{};
So if this yield.hpp included in two different cpp files then there will be link issue.
If existing code will be changed with following then issue is solved.
inline yield_t& this_yield() { thread_local yield_t yield; return yield; }
The text was updated successfully, but these errors were encountered:
If you have C++17 it would be simpler to declare the global variable itself inline.
Sorry, something went wrong.
No branches or pull requests
In the file
examples/asio/yield.hpp
there is the lineSo if this yield.hpp included in two different cpp files then there will be link issue.
If existing code will be changed with following then issue is solved.
The text was updated successfully, but these errors were encountered: