[libcxx-commits] [PATCH] D104315: [libc++] Promote GCC 11 to mandatory CI
Matheus Izvekov via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 13 11:54:30 PDT 2021
mizvekov added inline comments.
================
Comment at: libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/atomic_is_lock_free.pass.cpp:30
typedef std::atomic<T> A;
- A t;
+ A t = T();
bool b1 = std::atomic_is_lock_free(static_cast<const A*>(&t));
----------------
This initialization and the similar one below would not work from C++14 and below.
std::atomic is not copy construtible, and only starting from C++17 this initialization here from a prvalue of the same type performs direct initialization, and not a copy.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104315/new/
https://reviews.llvm.org/D104315
More information about the libcxx-commits
mailing list