Asio integration: link error in yield.hpp included in different cpp
未关闭
- 主要语言
- C++
- 星标
- 510
- 派生
- 123
- PR 合并指标
- 30 天内没有已合并 PR
描述
In the file `examples/asio/yield.hpp` there is the line
```
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;
}
```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。