Skip to content
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

✨ 🐛 Support C++17 for atomic API #35

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Oct 16, 2024

Problem:

  • This library required C++20 before now, but there is no reason the atomic API should need C++20.
  • Depending on this library caused stdx to require C++20; most parts of stdx require only C++17.

Solution:

  • Allow the atomic API to build with C++17.

Note:

  • conc::call_in_critical_section uses decltype([]{}) so still requires C++20. But the atomic part of this library is usable with C++17.

include/conc/atomic.hpp Outdated Show resolved Hide resolved
Problem:
- This library required C++20 before now, but there is no reason the `atomic`
  API should need C++20.
- Depending on this library caused `stdx` to require C++20; most parts of `stdx`
  require only C++17.

Solution:
- Allow the `atomic` API to build with C++17.

Note:
- `conc::call_in_critical_section` uses `decltype([]{})` so still requires
  C++20. But the `atomic` part of this library is usable with C++17.
@lukevalenty lukevalenty merged commit 06e5901 into intel:main Oct 16, 2024
31 checks passed
@elbeno elbeno deleted the cpp-17 branch October 16, 2024 17:34
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