[libcxx-commits] [libcxx] [libc++] Remove unnecessary static_casts in std::forward_list (PR #130310)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 26 06:01:01 PDT 2025


ldionne wrote:

Ack. I think this looks fine to me, but we might want to double-check what @frederick-vs-ja thinks about this one. Frederick, I'm also unfamiliar with the requirements on pointer-like types in the standard, and http://eel.is/c++draft/memory is very light on details. Do you know if we're allowed to assume that we can convert between fancy pointer types via conversions that would be legal if we were using raw pointers instead? Such as `fancy_pointer<Derived>` to `fancy_pointer<Base>`.

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


More information about the libcxx-commits mailing list