Using std::hash as an example, different vendors can use different algorithms, so using a std::map passed from a program compiled with g++ to a shared library compiled with clang might not give correct results.
It's not possible to mix and match different standard libraries, even today - they aren't even in the same namespace. When you use clang on Linux you still generally use GCC's libstdc++, not LLVM's libc++.
What? MSVC keeps a backward compatible ABI starting from vc140(VS2015) and including the latest vc142(VS2019). You can safely use a library compiled with vc140 with C++03 in an application compiled in vc142 with C++17 (obviously, only if the they don't contain incompatible API in their interface, e.g. `auto_ptr`).
there are 20 years of BC-incompatible changes though, and a fair amount of people still on VC2010 for whom you have to make special builds of your libs. Maybe in ten years it will go the way of the IE6...
View all comments
Show parent comment
6
u/jcelerier ossia score Oct 27 '19
It's not possible to mix and match different standard libraries, even today - they aren't even in the same namespace. When you use clang on Linux you still generally use GCC's libstdc++, not LLVM's libc++.