[libcxx-commits] [libcxx] [libc++] constexpr atomic and atomic_ref (PR #98765)
Hana Dusíková via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 14 03:26:50 PDT 2024
hanickadot wrote:
> I'm not sure what you mean here with "how to make the constexpr support conditional". Allowing it only for C++26 seems like the right thing to do to me.
I mean this will work with clang with apropriate change, but libc++ is working with other compilers, so the support should be enabled conditionally `constexpr` conditionally so user won't get scary error about insides of `atomic<T>` if they will try to use it on compiler without atomic builtins support.
https://github.com/llvm/llvm-project/pull/98765
More information about the libcxx-commits
mailing list