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
Anagrams WIP
SL_Dictance challange
1st
Test 5(2020)
Weighted Average
Search a 2D Matrix
perfect square
Synchro#3
Karibu
10 wizards