Skip to content

🎨 Enable bit_mask with array types #211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2025
Merged

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