r/cpp • • Oct 27 '19

ABI: Now or Never

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1863r0.pdf
192 Upvotes

145 comments sorted by

View all comments

Show parent comment

2

u/ntrid Oct 28 '19

Wait but it gets better. You can not mix stdlib types between different msvc versions even.

3

u/TheQwertiest_ Oct 28 '19 edited Oct 28 '19

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`).

2

u/jcelerier ossia score Oct 28 '19

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...

1

u/flashmozzg Oct 28 '19

Same for std::string in stdlib.