search for: end_subclass_data

Displaying 2 results from an estimated 2 matches for "end_subclass_data".

2019 Dec 24
2
RFC: Refactor SubclassData
...ssData bits [0,5) ADD_SUBCLASS_BITFIELD(bool, 1, B2) // A::SubclassData bits [5,6) ADD_SUBCLASS_BITFIELD(short, 6, B3) // A::SubclassData bits [6,12) // ADD_SUBCLASS_BITFIELD(int, 6, B4) // A::SubclassData bits [12,18) - triggers a static_assert, as it exceeds the 14 bits in A::SubclassData END_SUBCLASS_DATA() }; struct C : B { BEGIN_SUBCLASS_DATA() ADD_SUBCLASS_BITFIELD(bool, 1, C1) // A::SubclassData bits [12,13) END_SUBCLASS_DATA() }; I would appreciate your thoughts on the matter, before I submit a patch for review. Cheers, Ehud. -------------- next part -------------- An HTML attachm...
2019 Dec 26
2
RFC: Refactor SubclassData
...ELD(bool, 1, B2) // A::SubclassData bits [5,6) >> ADD_SUBCLASS_BITFIELD(short, 6, B3) // A::SubclassData bits [6,12) >> // ADD_SUBCLASS_BITFIELD(int, 6, B4) // A::SubclassData bits [12,18) - >> triggers a static_assert, as it exceeds the 14 bits in A::SubclassData >> END_SUBCLASS_DATA() >> }; >> >> struct C : B { >> BEGIN_SUBCLASS_DATA() >> ADD_SUBCLASS_BITFIELD(bool, 1, C1) // A::SubclassData bits [12,13) >> END_SUBCLASS_DATA() >> }; >> >> >> I would appreciate your thoughts on the matter, before I submit a p...