Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
6.8
-
None
Description
slightly related to QTBUG-111926
Often enough, QFlags may not be particularly large. For example when 8 options is enough, the underlying enum type could just be a `std::uint8_t`. Wrapping the enum type in QFlags unfortunately results in an type four times as big! This is obviously wasteful! Instead, sizeof(QFlags<Enum>) == sizeof(Enum) should always hold.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-128105 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
584620,4 | make sizeof(QFlags<Enum>) == sizeof(Enum) for scoped enumeration on Qt7 | dev | qt/qtbase | Status: NEW | +1 | 0 |