https://bugs.documentfoundation.org/show_bug.cgi?id=168771

--- Comment #6 from Stephan Bergmann <[email protected]> ---
(In reply to Tomaz Vajngerl from comment #5)
> (In reply to Stephan Bergmann from comment #4)
> > I think this would be non-portable at best, as:  "Allocation of bit-fields
> > within a class object is implementation-defined." (C++20 [class.bit]/1)
> 
> Portable to what when large amount of uses of bit fields in the code base
> are not even in a place where this matters.

(My assumption was that such enumerations were in general used in places where
the data layout is mandated by some external protocol.  In places where that is
not the case, it can indeed be beneficial to model the represented information
in a more direct way.)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to