We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdd7c03 commit 3a30955Copy full SHA for 3a30955
libcxx/include/__memory/addressof.h
@@ -23,11 +23,9 @@ inline _LIBCPP_CONSTEXPR_SINCE_CXX17 _LIBCPP_NO_CFI _LIBCPP_HIDE_FROM_ABI _Tp* a
23
return __builtin_addressof(__x);
24
}
25
26
-#if _LIBCPP_HAS_OBJC_ARC && !defined(_LIBCPP_PREDEFINED_OBJC_ARC_ADDRESSOF)
+#if _LIBCPP_HAS_OBJC_ARC
27
// Objective-C++ Automatic Reference Counting uses qualified pointers
28
-// that require special addressof() signatures. When
29
-// _LIBCPP_PREDEFINED_OBJC_ARC_ADDRESSOF is defined, the compiler
30
-// itself is providing these definitions. Otherwise, we provide them.
+// that require special addressof() signatures.
31
template <class _Tp>
32
inline _LIBCPP_HIDE_FROM_ABI __strong _Tp* addressof(__strong _Tp& __x) _NOEXCEPT {
33
return &__x;
0 commit comments