Skip to content

🐛 Make atomic config work with scoped enumerations #210

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 2 commits into from
Mar 20, 2025

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Mar 20, 2025

Problem:

  • Configuring stdx::atomic for scoped enumerations doesn't work because a scoped enumeration is not convertible to its configured underlying type.

Solution:

  • Instead of requiring convertibility, require the types to be trivially copyable, and that the size & alignment is compatible.

elbeno added 2 commits March 20, 2025 16:22
Problem:
- There is no test for partial specialization of atomic config.

Solution:
- Add a test for atomic pointers.
Problem:
- Configuring `stdx::atomic` for scoped enumerations doesn't work because a
  scoped enumeration is not convertible to its configured underlying type.

Solution:
- Instead of requiring convertibility, require the types to be trivially
  copyable, and that the size & alignment is compatible.
@elbeno elbeno changed the title ✅ Add test for atomic type partial specialization 🐛 Make atomic config work with scoed enumerations Mar 20, 2025
@elbeno elbeno changed the title 🐛 Make atomic config work with scoed enumerations 🐛 Make atomic config work with scoped enumerations Mar 20, 2025
@elbeno elbeno enabled auto-merge March 20, 2025 23:07
@elbeno elbeno merged commit ea55684 into intel:main Mar 20, 2025
36 checks passed
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.

3 participants