malachi-iot / embr

Apache License 2.0
1 stars 0 forks source link

QFlags-like #5

Closed malachib closed 4 days ago

malachib commented 1 week ago

Make our own version of this

Qt has a useful QFlags mechanism to keep or'd, and'd, etc. (|, &) operations a strong type instead of decaying into an integer. Keeps things tidy and would be useful in that context for specializations depending on flags

Note there have been experimental versions of this in embr already, so we may want to meld with those

UPDATE

Importantly, this needs to play nice with structure specialization

malachib commented 4 days ago

Evidently some kind of github magic notices 'close' in proximity to this URI in a commit. Not intentional