r/cpp • u/Sify007 • Mar 12 '26
Replacement for concurrencpp
Some years ago I used concurrencpp library to have achieve user-space cooperative multi-threading in my personal project. Now I need a library to do the same, but concurrencpp seems to have stopped being developed and maybe even supported. Does anyone know a decent replacement?
14
Upvotes
View all comments
Show parent comment
1
u/JVApen Clever is an insult, not a compliment. - T. Winters Mar 13 '26
Sounds plausible. That explains why
unique_ptr<int> p = nullptrfor default parameters and default member initialization is being triggered. The latter is easily fixed by using{}(not= {}) the former will require function overloading with each time an argument less. Moving destructors= defaultin the cpp also helps for several cases.Strangely enough the static assert in MS STL unique_ptr destruction is also there for previous versions.