问题
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:
ConceptsandModulesare fully and partially supported, respectively. There is no support forCouroutinesandRanges. Also,Modulesis still at the experimental stage.There is no support except for
Concepts.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.
回答1:
With regard to the useful comments, I conclude that 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.
Unfortunately I have no enough reputation to uopvote the comments. Thanks for the helpful comments.
来源:https://stackoverflow.com/questions/59005741/does-visual-studio-2019-v16-3-9-fully-support-c20