minus-squarePaul@feddit.dktoC++@programming.dev•Enum Class Improvements for C++17, C++20 and C++23linkfedilinkarrow-up1·edit-23 months agoGood question. My response would be: only where it is not used as an enum. The example in the article is one example (although I’ve never seen that idiom in the wild) or for doing things like bitfields (the opposite of the to_underlying section). linkfedilink
Good question. My response would be: only where it is not used as an enum. The example in the article is one example (although I’ve never seen that idiom in the wild) or for doing things like bitfields (the opposite of the
to_underlying
section).