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

Implement P3323R1 Forbid atomic<cv T>, Specify atomic_ref<cv T> #5213

Merged
merged 14 commits into from
Jan 14, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add compiler bug workaround.
StephanTLavavej committed Jan 13, 2025
commit 403436ec12d9184af40550dc50972cc213a57f8a
4 changes: 4 additions & 0 deletions tests/std/tests/P0019R8_atomic_ref/test.cpp
Original file line number Diff line number Diff line change
@@ -53,7 +53,11 @@ void test_atomic_ref_constraints_single() { // COMPILE-ONLY
});
{
[[maybe_unused]] auto instantiator = [](const AR& r, TD v, std::memory_order ord) {
#if defined(__clang__) || defined(__EDG__) // TRANSITION, VSO-2343282
(void) r.operator TD();
#else // ^^^ no workaround / workaround vvv
[[maybe_unused]] TD td = r;
#endif // ^^^ workaround ^^^
(void) r.load();
(void) r.load(ord);
r.wait(v);