[libcxx-commits] [libcxx] [libcxx] responds to Clang Tidy feedback (PR #97556)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 3 07:29:48 PDT 2024


================
@@ -754,7 +754,7 @@ class __func<_Rp1 (^)(_ArgTypes1...), _Alloc, _Rp(_ArgTypes...)> : public __base
 #    ifdef _LIBCPP_HAS_OBJC_ARC
       : __f_(__f)
 #    else
-      : __f_(reinterpret_cast<__block_type>(__f ? _Block_copy(__f) : nullptr))
+      : __f_(reinterpret_cast<__block_type>(__f ? std::__function::_Block_copy(__f) : nullptr))
----------------
philnik777 wrote:

```suggestion
      : __f_(reinterpret_cast<__block_type>(__f ? __function::_Block_copy(__f) : nullptr))
```

https://github.com/llvm/llvm-project/pull/97556


More information about the libcxx-commits mailing list