
It applies in any mode that uses the new lambda processor: /Zc:lambda, /std:c++20, or /std:c++latest. In Visual C++ 2022 version 17.1 and later, the compiler now detects when a capture default isn't allowed in a non-local lambda expression and emits a new level 4 warning, C5253. The C++ Standard only allows a lambda expression in block scope to have a capture-default. Detect ill-formed capture default in non-local lambda-expressions

Visual Studio 2022 version 17.1 contains the following conformance improvements, bug fixes, and behavior changes in the Microsoft C++ compiler. Conformance improvements in Visual Studio 2022 version 17.1 For a complete list of previous conformance improvements, see Visual C++ What's New 2003 through 2015. For changes in Visual Studio 2017, see C++ conformance improvements in Visual Studio 2017. For a guide to the changes in Visual Studio 2019, see C++ conformance improvements in Visual Studio 2019. This document lists the changes in Visual Studio 2022. To jump directly to the changes for a specific version, use the list below In this article. This article lists the improvements by major release, then by version.


Microsoft C/C++ in Visual Studio (MSVC) makes conformance improvements and bug fixes in every release.
