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
2015(M2)Mod.
binary
Pac update
1
Binary search2
Test 6(2020)
Hello world!
2
Get smallest dividers
test111