2018年4月18日
摘要: clang和MSVC的最新实现已经提供了试验性的协程实现,想要试用的话,clang需要开启-fcoroutins-ts -stdlib=libc++两个开关,而MSVC需要开启/await开关。 我们从一个简单的generator来看编译器做了什么: #include #include namespace stdexp = std::experimental;stdexp::generator... 阅读全文
posted @ 2018-04-18 21:17 PointerSMQ 阅读(754) 评论(0) 推荐(0) 编辑