17
top 3 comments
sorted by: hot top controversial new old
[-] MarekKnapek@programming.dev 2 points 2 years ago

ABI break when?

I know some unnamed big customers want ABI stability. But common ... VS2015, VS2017, VS2019 and VS2022 all compatible with each other if used with new enough linker? They all are sharing pre-defined macro _MSC_VER 19xx and VC++ toolset version number 14.xx. That is too much of holding back progress on performance and correctness fronts. Eight years is enough.

Customers need to learn that they cannot rely on ABI stability of STL provided classes, cos guess what: The Holy Standard doesn't specify any. Toolchain vendors do. This also applies to MFC/ATL/whatnot distributed as part of Visual Studio. Remember the GCC copy-on-write string ABI problem? We already have technology to help migrate between ABI versions: one is called COM, other is pimpl, other is version number as first member of struct or first function parameter. I bet there are many more out there.

[-] MarekKnapek@programming.dev 1 points 2 years ago
[-] LexiMax 1 points 2 years ago

Very exciting. I'm all for improved indexing and search times, and integrating C++ build insights directly into the IDE is a smart move.

However, someone pointed out to me a new feature in the works on the preview branch, Size and Alignment hints, where hovering over a struct or class will reveal its size and alignment. I can't be the only one thankful that I will soon no longer have to constexpr auto x = sizeof(Foo); ๐Ÿ˜€

this post was submitted on 08 Aug 2023
17 points (100.0% liked)

C++

1838 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 2 years ago
MODERATORS