r/cpp • Meeting C++ | C++ Evangelist • Jul 19 '26

A better bitset for enum flags

https://www.elbeno.com/blog/?p=1836
43 Upvotes

32 comments sorted by

View all comments

Show parent comment

7

u/_Noreturn Jul 19 '26

Bitfields have few guarantees with layout and so are unsuitable for interop,

Yes, which is a shame.