Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Bitfield too small to hold all enum values
//g++ 7.4.0 #include <iostream> int main() { enum MyEnum : uint32_t { ValueA = 0x0, ValueB = 0x1, ValueC = 0xf }; struct MyStruct { union { struct { MyEnum identifier : 5; uint32_t reserved : 27; }; uint32_t dword01; ///< the first dword }; }; }
run
|
edit
|
history
|
help
0
scope new delete
HashTabFold
Stream11
Working variables benchmark
cvcvcvcvv
congruence modulo equations (together with a simple BigInteger class)
Bad Code2
Replace substring poor
11080 WIP
Abejas WA