Skip to content

Commit 65c9450

Browse files
TylerMSFTTylerMSFT
authored andcommitted
acrolinx
1 parent e388853 commit 65c9450

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/build/reference/zc-externconstexpr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ The **`/Zc:externConstexpr`** compiler option causes the compiler to apply exter
1919

2020
In earlier versions of Visual Studio, by default or if **`/Zc:externConstexpr-`** is specified, Visual Studio applies internal linkage to **`constexpr`** variables even if the **`extern`** keyword is used. The **`/Zc:externConstexpr`** option is available starting in Visual Studio 2017 Update 15.6. and is off by default.
2121

22-
As of Visual Studio 2022 Update 17.6, the `/permissive-` option enables both `/Zc:lambda` and `/Zc:externConstexpr`. In prior versions, neither were enabled by `/permissive-`.
22+
As of Visual Studio 2022 Update 17.6, the **`/permissive-`** option enables both **`/Zc:lambda`** and **`/Zc:externConstexpr`**. In prior versions, **`/permissive-`** didn't enable either one.
2323

24-
If a header file contains a variable declared `extern constexpr`, it must be marked [`__declspec(selectany)`](../../cpp/selectany.md) in order to merge the duplicate declarations into a single instance in the linked binary. Otherwise you may see linker errors, for example, LNK2005, for violations of the one-definition rule.
24+
If a header file contains a variable declared **`extern constexpr`**, it must be marked [`__declspec(selectany)`](../../cpp/selectany.md) in order to merge the duplicate declarations into a single instance in the linked binary. Otherwise you may see linker errors, for example, LNK2005, for violations of the one-definition rule.
2525

2626
### To set this compiler option in Visual Studio
2727

0 commit comments

Comments
 (0)