[PATCH] D17951: Implement is_always_lock_free
JF Bastien via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 23 14:07:38 PDT 2016
jfb added inline comments.
================
Comment at: include/atomic:859
@@ +858,3 @@
+#if defined(__cpp_lib_atomic_is_always_lock_free)
+ static _LIBCPP_CONSTEXPR bool is_always_lock_free = __atomic_always_lock_free(sizeof(__a_), 0);
+#endif
----------------
EricWF wrote:
> jfb wrote:
> > I don't think so: it's similar to `std::integral_constant<_Tp, __v>::value`.
> integral_constant::value has a definition on line 481 of type_traits.
Ha! I'd totally missed that. That explains why I was confused :-)
Added, thanks!
http://reviews.llvm.org/D17951
More information about the cfe-commits
mailing list