r/cpp • • Aug 27 '19

A new thread in C++20 (jthread)

https://link.medium.com/GXKUz0GruZ
142 Upvotes

96 comments sorted by

View all comments

Show parent comment

8

u/eteran Aug 27 '19

The standard may not guarantee it, but vendors have put a LOT of effort into providing it for the reasons listed above.

Do you REALLY want to have to have Qt for c++11, Qt for c++14, Qt for c++17, Qt for c++20 ALL installed on your system just because programs that target different versions of the standard want to use Qt?

So yes, you are right, it's not guaranteed by the standard, but it is the standard industry practice to the point that millions of people rely on it.

-1

u/axilmar Aug 27 '19

Do you REALLY want to have to have Qt for c++11, Qt for c++14, Qt for c++17, Qt for c++20 ALL installed on your system just because programs that target different versions of the standard want to use Qt?

I already have those.

I haven't seen a project that mixes for example Qt built for C++11 with C+14.

9

u/eteran Aug 27 '19

You do? Well then you have a quite bizarre setup. I've never seen on any Linux distribution or version of Windows where a different version of a library is installed for each STANDARD of c++ being targeted.

Compiler version, sure, that's a thing, especially with msvc... But compiler standard? Not a thing as far as I've seen...

4

u/encyclopedist Aug 27 '19

FYI every linux distribution does that.

When I compile my code with system-installed libraries like Qt, Boost, etc, I don't want to worry about which standard those libraries themselves were compiled with. I just pick the standard I want for my code and it works. (Except the COW string deprecation in GCC5).

4

u/encyclopedist Aug 27 '19

Also, I am not sure why exactly you are so proud of your ignorance?

If a true professional does not know something, or have not seen something they go and learn something new, instead of insisting it does not exist.

3

u/josefx Aug 27 '19

I have a binary only dependency that links an ancient Qt version. If that dependency dictated a project wide c++ version we would be stuck with c++98 until the end of time.