[libcxx-commits] [libcxx] [libc++] Require fancy pointer to be correctly convertible (PR #152989)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 3 04:50:52 PDT 2025
================
@@ -96,7 +96,7 @@ struct __hash_node_base {
__next_pointer __next_;
_LIBCPP_HIDE_FROM_ABI __next_pointer __ptr() _NOEXCEPT {
- return static_cast<__next_pointer>(pointer_traits<__node_base_pointer>::pointer_to(*this));
+ return pointer_traits<__node_base_pointer>::pointer_to(*this);
----------------
frederick-vs-ja wrote:
Conversion via `void_pointer` is constexpr-unfriendly (while these details need to be constexpr since C++26).
https://github.com/llvm/llvm-project/pull/152989
More information about the libcxx-commits
mailing list