[libcxx-commits] [libcxx] [libc++] Prevent ADL on _Block_copy/_Block_release (PR #179614)
Fady Farag via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Feb 5 03:21:53 PST 2026
================
@@ -540,7 +540,7 @@ class __func<_Rp1 (^)(_ArgTypes1...), _Rp(_ArgTypes...)> : public __base<_Rp(_Ar
# if __has_feature(objc_arc)
: __f_(__f)
# else
- : __f_(reinterpret_cast<__block_type>(__f ? _Block_copy(__f) : nullptr))
+ : __f_(reinterpret_cast<__block_type>(__f ? (_Block_copy)(__f) : nullptr))
----------------
iidmsa wrote:
Resorted to` __function::_Block_copy`.
https://github.com/llvm/llvm-project/pull/179614
More information about the libcxx-commits
mailing list