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
3
u/_bstaletic Mar 13 '26
The
unique_ptrcase turned UB into a compile time error. Before c++23 calling the destructor of the unique_ptr whenTis incomplete was UB. Wherever you end up calling the destructor of such a unique_ptr, it always needed to be after the point whereTis complete.I imagine
std::vectoris the same.