Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Print All Paths In Matrix
read_write_lock_acc
Make Bin Tree
ASHA
Good1
CurDayMessage
BoauthCPP
prime factorization trial division
My Pratice
cppPyPoly
Please log in to post a comment.