Skip to content
John Bandela edited this page Apr 11, 2016 · 1 revision

C++14 Stackless Coroutines

Advantages

  • No macros
  • Single header file stackless_coroutine.hpp
  • C++14 - Works with Visual C++ 2015, GCC 5.3, Clang 3.8
  • No ABI changes
  • Works well with libraries such as Boost Asio that take callbacks
  • No type erasure, no virtual function calls
  • No memory allocation in library
  • No mutexes, locks, or atomic variables

Disadvantates

  • Like all stackless models - this is suspend down
  • More verbose than if it was a language feature

Reference

Concepts

Clone this wiki locally