[libcxx-commits] [libcxx] [libc++] Fix strict aliasing violation for `deque::const_iterator` (PR #136067)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 9 04:24:52 PDT 2026
================
@@ -283,7 +304,18 @@ template <class _ValueType,
# endif
>
class __deque_iterator {
- typedef _MapPointer __map_iterator;
+ using __map_iterator _LIBCPP_NODEBUG = __get_deque_map_iterator<_ValueType, _MapPointer>;
----------------
philnik777 wrote:
Indeed, that should work. Let's change to that and I think I'm happy with this patch.
https://github.com/llvm/llvm-project/pull/136067
More information about the libcxx-commits
mailing list