18 Nov
2025
18 Nov
'25
12:08 p.m.
В письме от вторник, 18 ноября 2025 г. 13:46:22 MSK пользователь Janko Dedic via Boost написал:
enum class E { A, B, C }; flag_set<E> flags{E::A, E::B}; flags.add(E::C); flags.erase(E::A); bool b = flags.contains(E::B);
There was recently (last year?) a library author seeking for endorsements for a library like that. To my knowledge, he didn't get a single one. Seems to me that people in general think that wrapping the bitmask with a struct is too much.