Re:Algorithms for Modern Hardware
by menaerus on Saturday March 16, 2024 @04:24AM
(#39724212)
ABI compatibility is needed in 99% of the cases since you basically never compile your own STL. You dynamically (or statically if you will) link against the one you have on a system since most software does not have a control over the machines/environment where it's going to be deployed. Even in cases where you do have a control over your environment deployment, compiling your own libc++/libstdc++ is a complication which you usually want to avoid.
[ Parent
| on HN ]
The C++ standard library is about 90% template code in headers. Yes, you compile it all the time, in your own environment. You have no choice.
The fact that you will use a class or function template from STL, and compile it, doesn't change the fact that, regardless of that, you will have to link against the libstdc++ or libc++ which you didn't compile yourself. I am not sure I understand the argument you're trying to make.