Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Visual Studio 2019 v16.3.9 fully support C++20?

I`ve searched a lot and found different inforamation but unfortuantely could not understand Visual Studio 2019 fully supports C++20 or not!

According to my searches, there are 3 types of information:

  1. Concepts and Modules are fully and partially supported, respectively. There is no support for Couroutines and Ranges. Also, Modules is still at the experimental stage.

  2. There is no support except for Concepts.

  3. All features are fully supported in MSVC and CLANG.

I`ve asked this question because I need to compile some sample code of new features introduced in C++20.

Note: The current and new version of VS2019 (at the time of asking this question) is 16.3.9.

like image 200
7eRoM Avatar asked Nov 23 '19 08:11

7eRoM


1 Answers

Visual Studio 2019 v16.3.9 partially supports C++20.

By changing the MSVC compiler option from /std:c++17 to /std:c++latest, we can use the latest implemented features.

According to the question, type 1 or 2 of gathered information is more close to correct answer.

like image 110
7eRoM Avatar answered Sep 26 '22 09:09

7eRoM