On 6 May 2017 at 18:23, Nicklas Karlsson <nicklas.karlsso...@gmail.com>
wrote:

> I think C-style enums lack possibility to specify how many bits should be
> used for storage which is useful then decoding from some kind of raw data.


No, the underlying type can also be specified for plain enums too. Try it:
enum MyPlainEnum: unsigned char

And there's my next point: it's hard to think of a case where this is
really useful for 'decoding from raw data', given the very limited
allowances that C++ makes for type-punning and other shenanigans. To me
it's only useful for conveying numerical semantics and saving space in
class layouts, not much else.
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to