Visual Studio 2019 v16.3.9是否完全支持C ++ 20?

问题描述:

我已经搜索了很多内容,发现了不同的信息,但不幸的是无法理解Visual Studio 2019是否完全支持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!

根据我的搜索,信息共有3种:

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


  1. 概念模块分别得到完全和部分支持。 Couroutines Ranges 不支持。此外,模块仍处于试验阶段。

  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.

除了概念以外,没有任何支持。

There is no support except for Concepts.

MSVC和CLANG完全支持所有功能。

All features are fully supported in MSVC and CLANG.

我问了这个问题因为我需要编译C ++ 20中引入的一些新功能的示例代码。

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

注意:VS2019的当前和新版本(在提出此问题时)是16.3.9。

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

关于有用的注释,我得出结论,Visual Studio 2019 v16.3.9部分支持C。 ++ 20。通过将MSVC编译器选项从 / std:c ++ 17 更改为 / std:c ++ latest ,我们可以使用最新实现的功能。 ّ根据问题,收集的信息的类型1或2更接近正确答案。

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.