Closed wg21bot closed 1 year ago
LWG in Kona: An editorial issue will be filed to rename to integral-type and floating-point-type to make it clear these are not the concept
Notes from Kona: https://wiki.edg.com/bin/view/Wg21kona2022/LWG20221107-LA
@jwakely: can I note the final disposition as "Accepted"? Or is it with modifications?
I think with modifications, since my original suggestion to completely respecify them in terms of concepts was rejected in favour of an editorial fix.
OK, I'll say "accepted with modifications", and you can review that part in the Editors' Report when we get to it.
Accepted with modifications. The misleading placeholder names have been renamed.
We define specializations
std::atomic<integral>
andstd::atomic<floating-point>
, and the corresponding ones forstd::atomic_ref
. The choice of placeholder names is confusing given that we now have std::integral and std::floating_point concepts. Either choose a different placeholder, e.g. Integral, or just re-specify them as partial specializations constrained using the appropriate concept. This would make them valid C++, not pseudo-code, and consistent with the partial specializations for pointers.Change
template<> struct atomic<integral>
totemplate<integral T> struct atomic<T>
and replaceintegral
in the class body with "T" (which is already used for the member functions fetch_key and op=). Similarly foratomic<floating-point>
andatomic_ref<integral>
andatomic_ref<floating-point>
.