如何在Visual Studio 2019中启用c ++ 20(16.3预览版4)

问题描述:

如何在Visual Studio 2019(16.3预览版4)中启用c ++ 20?
我对测试C ++ 20的某些功能很感兴趣.

How to enable c++20 in Visual Studio 2019 (16.3 preview 4)?
I'm interesting to test some C++20 features.

C ++ 20尚未成为标准.您可以选择从Visual Studio的工作草案中启用最新的受支持功能,但是显然这既不完整也不保证一定稳定:

C++20 isn't a standard yet. You can chose to enable the latest supported features from the working draft in Visual Studio, however this is obviously neither complete nor guaranteed to be in any way stable:

右键单击您的项目->属性->常规-> C ++语言标准:选择预览-最新C ++工作草案中的功能(std:c ++ latest)"

Right click your project -> Properties -> General -> C++ Language Standard: Select "Preview - Features from the Latest C++ Working Draft (std:c++latest)"