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

Ser*_*gio 3 c++ c++20 visual-studio-2019

如何在 Visual Studio 2019(16.3 预览版 4)中启用 c++20?
我对测试一些 C++20 特性很感兴趣。

Max*_*mer 6

C++20 还不是标准。您可以选择从 Visual Studio 的工作草案中启用最新支持的功能,但是这显然既不完整也不保证在任何方面都稳定:

右键单击您的项目 -> 属性 -> 常规 -> C++ 语言标准:选择“Preview - Features from the Latest C++ Working Draft (std:c++latest)”