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 7950727 commit 46164d8Copy full SHA for 46164d8
libcxx/include/list
@@ -342,7 +342,10 @@ public:
342
: __base(__prev, __next) {}
343
_LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI ~__list_node() {}
344
345
- _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI __base_pointer __as_link() { return __base::__self(); }
+ _LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI __base_pointer __as_link() {
346
+ return pointer_traits<__base_pointer>::pointer_to(
347
+ *static_cast<typename pointer_traits<__base_pointer>::element_type*>(std::addressof(*this)));
348
+ }
349
};
350
351
template <class _Tp, class _Alloc = allocator<_Tp> >
0 commit comments