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

北城余情 提交于 2020-07-07 06:49:09

问题


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.


回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!