13
submitted 1 month ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 1 points 1 month ago* (last edited 1 month ago)

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).

this post was submitted on 05 Aug 2024
13 points (93.3% liked)

C++

1718 readers
13 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS