File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22description : " 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 )"
44ms.date : 11/07/2022
55f1_keywords : ["/Zc:enumTypes"]
66helpviewer_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
8080
81811 . Select the ** Configuration Properties** > ** C/C++** > ** Command Line** property page.
8282
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.
8484
8585## See also
8686
Original file line number Diff line number Diff line change 11---
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 )"
44ms.date : 11/07/2022
55f1_keywords : ["/Zc:__STDC__"]
66helpviewer_keywords : ["-Zc:__STDC__ compiler option (C++)", "/Zc:__STDC__ compiler option (C++)"]
77---
8- # ` /Zc:__STDC__ ` (Define ` __STDC__ ` in C )
8+ # ` /Zc:__STDC__ ` (Enable ` __STDC__ ` macro )
99
1010The ** ` /Zc:__STDC__ ` ** compiler option defines the built-in ` __STDC__ ` preprocessor macro as 1 in C code.
1111
Original file line number Diff line number Diff line change @@ -769,14 +769,18 @@ items:
769769 items :
770770 - name : /Zc (Conformance)
771771 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
772776 - name : " /Zc:alignedNew (C++17 over-aligned allocation)"
773777 href : ../build/reference/zc-alignednew.md
774778 - name : " /Zc:auto (Deduce variable type)"
775779 href : ../build/reference/zc-auto-deduce-variable-type.md
776780 - name : " /Zc:char8_t (Enable C++20 char8_t type)"
777781 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
780784 - name : ' /Zc:externC (Use Standard C++ extern "C" rules)'
781785 href : ../build/reference/zc-externc.md
782786 - name : " /Zc:externConstexpr (Enable extern constexpr variables)"
You can’t perform that action at this time.
0 commit comments