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

A better bitset for enum flags

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

29 comments sorted by

View all comments

Show parent comment

4

u/03D80085 Jul 20 '26

if (permissions.read && permissions.write) ...?