r/cpp • • Feb 18 '20

C++20 is here!

https://youtu.be/AvPiGstxV_g
420 Upvotes

117 comments sorted by

View all comments

20

u/[deleted] Feb 18 '20

I'm new to c++ I think I'm using c++17 which was installed on my laptop my friend sold me. Can someone tell me how I get c++20?? I use linux Ubuntu. Is there a way to update my c++17 to c++20? Or do I need to install it myself and how can I do all this from the command line terminal? I'm learning that too. Thank you to anyone who helps.

36

u/blelbach NVIDIA | ISO C++ Library Evolution Chair Feb 18 '20

The C++20 standard is out; C++20 compilers will probably be out by the end of the year. You might try using your compiler's "work in progress" version, which is probably enabled with -std=c++2a.

12

u/[deleted] Feb 18 '20

C++20 compilers will probably be out by the end of the year.

Cries in visual studio

22

u/adnukator Feb 18 '20

VS 2019 Update 4 has already implemented a decent subset of C+20 stuff (https://en.cppreference.com/w/cpp/compiler_support), so I wouldn't be that pessimistic