Skip to content

Commit c6093bf

Browse files
authored
Merge pull request #1 from joncaves/joncaves-patch-1
Update zc-lambda.md
2 parents 96af0e8 + dfeb995 commit c6093bf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/build/reference/zc-lambda.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ The **`/Zc:lambda`** compiler option enables conforming lambda grammar and proce
1717

1818
The **`/Zc:lambda`** compiler option enables the conforming lambda processor. It parses and implements lambda code according to the C++ standard. This option is off by default, which uses the legacy lambda processor. Use this option to enable conformance-mode syntax checks of generic lambdas when you use the default [`/std:c++14`](std-specify-language-standard-version.md) or the [`/std:c++17`](std-specify-language-standard-version.md) compiler options.
1919

20-
**`/Zc:lambda`** is automatically enabled by the [`/std:c++20`](std-specify-language-standard-version.md), [`/std:c++latest`](std-specify-language-standard-version.md), and [`/experimental:module`](experimental-module.md) options. You can disable it explicitly by using **`/Zc:lambda-`**. The [`/permissive-`](permissive-standards-conformance.md) option doesn't enable **`/Zc:lambda`**.
20+
**`/Zc:lambda`** is automatically enabled by the [`/std:c++20`](std-specify-language-standard-version.md), [`/std:c++latest`](std-specify-language-standard-version.md), and [`/experimental:module`](experimental-module.md) options. You can disable it explicitly by using **`/Zc:lambda-`**.
21+
22+
Starting with Visual Studio 2022 17.2 the [`/permissive-`](permissive-standards-conformance.md) option also enables **`/Zc:lambda`**. In earlier versions the [`/permissive-`](permissive-standards-conformance.md) option does not enable **`/Zc:lambda`**.
2123

2224
The **`/Zc:lambda`** option is available starting in Visual Studio 2019 version 16.8. It's available as **`/experimental:newLambdaProcessor`** starting in Visual Studio 2019 version 16.3, but this spelling is now deprecated.
2325

0 commit comments

Comments
 (0)