File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
description : " Learn more about the /Zc:enumTypes (Enable enum type deduction) compiler option."
3
- title : " /Zc:enumTypes (Enable C++20 enumTypes type)"
3
+ title : " /Zc:enumTypes (Enable enum type deduction )"
4
4
ms.date : 11/07/2022
5
5
f1_keywords : ["/Zc:enumTypes"]
6
6
helpviewer_keywords : ["-Zc:enumTypes compiler option (C++)", "/Zc:enumTypes compiler option (C++)"]
@@ -80,7 +80,7 @@ In this example the enumerator `A` should have type **`char`** prior to the clos
80
80
81
81
1 . Select the ** Configuration Properties** > ** C/C++** > ** Command Line** property page.
82
82
83
- 1 . In ** Additional options** , add ** ` /Zc:enumTypes ` ** or ** ` /Zc:enumTypes- ` * * . Choose ** OK** or ** Apply** to save your changes.
83
+ 1 . In ** Additional options** , add * ` /Zc:enumTypes ` * or * ` /Zc:enumTypes- ` * . Choose ** OK** or ** Apply** to save your changes.
84
84
85
85
## See also
86
86
Original file line number Diff line number Diff line change 1
1
---
2
- description : " Learn more about the /Zc:__STDC__ (Enable enum type deduction ) compiler option."
3
- title : " /Zc:__STDC__ (Enable C++20 __STDC__ type )"
2
+ description : " Learn more about the /Zc:__STDC__ (Enable __STDC__ macro ) compiler option."
3
+ title : " /Zc:__STDC__ (Enable __STDC__ macro )"
4
4
ms.date : 11/07/2022
5
5
f1_keywords : ["/Zc:__STDC__"]
6
6
helpviewer_keywords : ["-Zc:__STDC__ compiler option (C++)", "/Zc:__STDC__ compiler option (C++)"]
7
7
---
8
- # ` /Zc:__STDC__ ` (Define ` __STDC__ ` in C )
8
+ # ` /Zc:__STDC__ ` (Enable ` __STDC__ ` macro )
9
9
10
10
The ** ` /Zc:__STDC__ ` ** compiler option defines the built-in ` __STDC__ ` preprocessor macro as 1 in C code.
11
11
Original file line number Diff line number Diff line change @@ -769,14 +769,18 @@ items:
769
769
items :
770
770
- name : /Zc (Conformance)
771
771
href : ../build/reference/zc-conformance.md
772
+ - name : " /Zc:__cplusplus (Enable updated __cplusplus macro)"
773
+ href : ../build/reference/zc-cplusplus.md
774
+ - name : " /Zc:__STDC__ (Enable __STDC__ macro)"
775
+ href : ../build/reference/zc-stdc.md
772
776
- name : " /Zc:alignedNew (C++17 over-aligned allocation)"
773
777
href : ../build/reference/zc-alignednew.md
774
778
- name : " /Zc:auto (Deduce variable type)"
775
779
href : ../build/reference/zc-auto-deduce-variable-type.md
776
780
- name : " /Zc:char8_t (Enable C++20 char8_t type)"
777
781
href : ../build/reference/zc-char8-t.md
778
- - name : " /Zc:__cplusplus (Enable updated __cplusplus macro) "
779
- href : ../build/reference/zc-cplusplus .md
782
+ - name : ' /Zc:enumTypes (Enable enum type deduction) '
783
+ href : ../build/reference/zc-enumtypes .md
780
784
- name : ' /Zc:externC (Use Standard C++ extern "C" rules)'
781
785
href : ../build/reference/zc-externc.md
782
786
- name : " /Zc:externConstexpr (Enable extern constexpr variables)"
You can’t perform that action at this time.
0 commit comments