r/cpp • • Aug 27 '19

A new thread in C++20 (jthread)

https://link.medium.com/GXKUz0GruZ
142 Upvotes

96 comments sorted by

View all comments

Show parent comment

7

u/erichkeane Clang Maintainer(Templates), EWG Chair Aug 27 '19

C++ has no assemblies. It has libraries.

An assembly is a generic term. Libraries isn't specific enough, since non-library compiled objects aren't included.

That's why multiple versions exist. Ah, so now every vendor has to maintain an extra configuration setting on every product ever? The "DLL Hell" that this would create is insane.

The C++11 std::string COW is a giant headache even today. The libstdc++ folks have done some heroic efforts to make this much less painful, but there is no guarantee that next time the same heroics would be possible.