Skip to content

🎨 Enable bit_mask with array types#211

Merged
elbeno merged 1 commit intointel:mainfrom
elbeno:bit-mask-array
Mar 26, 2025
Merged

🎨 Enable bit_mask with array types#211
elbeno merged 1 commit intointel:mainfrom
elbeno:bit-mask-array

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Mar 22, 2025

Problem:

  • There is no way to ask for a bit mask in a std::array, such that e.g. bit_mask<std::array<std::uint8_t, 3>>() has all 24 bits set.

Solution:

  • Make bit_mask able to return a std::array.

Note:

  • This is a building block for array fields in messages among other things.

Problem:
- There is no way to ask for a bit mask in a `std::array`, such that e.g.
  `bit_mask<std::array<std::uint8_t, 3>>()` has all 24 bits set.

Solution:
- Make `bit_mask` able to return a `std::array`.

Note:
- This is a building block for array fields in messages among other things.
Copy link
Contributor

@mjcaisse-intel mjcaisse-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@elbeno elbeno merged commit a1c783d into intel:main Mar 26, 2025
36 checks passed
@elbeno elbeno deleted the bit-mask-array branch March 26, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants