[libcxx-commits] [libcxx] [libc++] Fix strict aliasing violation for `deque::const_iterator` (PR #136067)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 5 04:14:08 PDT 2025
frederick-vs-ja wrote:
@philnik777 Now I'm attempting to keep the actual type of `deque::const_iterator` unchanged and change type of the stored (possibly fancy) pointer instead.
I'm afraid that the standard seems to allow users to write member `pointer` types that can't be restored by `pointer_traits::rebind`, and thus we're still unable to handle some pathological but "correct" (standard-conforming) user-defined allocators.
https://github.com/llvm/llvm-project/pull/136067
More information about the libcxx-commits
mailing list