3 ms·
there are ABI incompatibilities between the C++98/03 STL and the C++11 and C++14 STLs.
by hendzen 11y ago
there are ABI incompatibilities between the C++98/03 STL and the C++11 and C++14 STLs.
- kbenson 11y agoThat's unfortunate. I'm not too familiar with the intricacies of C++, but I assume you can't link multiple STL libs in a single binary? Edit: Added a "can't" that was accidentally omitted...
- Someone 11y agoI don't know whether you can, but it would be asking for trouble. Let's say you call function f in library L and get back a std::list, and then pass it to function g in library M, which linked to a different implementation of std:list. At best, that would lead to a crash.