Skip to content

Commit 992f3c4

Browse files
committed
make sure enums are the right size
1 parent f08065c commit 992f3c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

project_config/config.hpp.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
namespace ${THIS_PROJECT_NAME} {
105105

106106
namespace sys {
107-
enum struct Os {
107+
enum struct Os : unsigned char {
108108
ADSP, AIX, Android, ARTOS, BeOS, BlueGeneL, BlueGeneP_dynamic,
109109
BlueGeneP_static, BlueGeneQ_dynamic, BlueGeneQ_static, BSDOS,
110110
Catamount, CrayLinuxEnvironment, CYGWIN, Darwin, DOS, DragonFly,
@@ -123,7 +123,7 @@ namespace sys {
123123
} // namespace sys
124124

125125
namespace compiler {
126-
enum struct Vendor {
126+
enum struct Vendor : unsigned char {
127127
ADSP, AppleClang, ARMCC, ARMClang, Bruce, Clang, Cray,
128128
CrayClang, Embarcadero, Borland, Fujitsu, FujitsuClang,
129129
GNU, GHS, HP, IAR, Intel, IntelLLVM, LCC, MSVC, NVHPC,
@@ -148,7 +148,7 @@ namespace version {
148148
} // namespace compiler
149149

150150
namespace lang {
151-
enum struct Std { Cxx98, Cxx03, Cxx11, Cxx14, Cxx17, Cxx20, Cxx23 };
151+
enum struct Std : unsigned char { Cxx98, Cxx03, Cxx11, Cxx14, Cxx17, Cxx20, Cxx23 };
152152

153153
inline constexpr auto std =
154154
#if ${PROJECT_NAME_CAPS}_HAS_STD_CXX23

0 commit comments

Comments
 (0)