[commited](_GLIBCXX_DEBUG] _Safe_iterator/_Safe_local_iterator code cleanup

Jonathan Wakely jwakely.gcc@gmail.com
Tue Jul 14 20:42:41 GMT 2026


Looks like you've attached a different patch

On Tue, 14 Jul 2026, 20:24 François Dumont, <frs.dumont@gmail.com> wrote:

> libstdc++: [_GLIBCXX_DEBUG] Make constant evaluation compatible
>
> Cleanup _Safe_iterator and _Safe_local_iterator implementations.
>
> Use base constructor for the special _Unchecked constructor.
>
> Remove intermediate typedefs, use directly the template parameter type
> and the base class.
>
> libstdc++-v3/ChangeLog:
>
>          * include/debug/safe_iterator.h
>          (_Safe_iterator::_Iter_base, _Safe_iterator::_Safe_base): Remove.
>          (_Safe_iterator(const _Safe_iterator&, _Unchecked)): Delegate
> to correct base classes
>          constructors.
>          * include/debug/safe_local_iterator.h
>          (_Safe_local_iterator::_Iter_base,
> _Safe_local_iterator::_Safe_base): Remove.
>          (_Safe_local_iterator(const _Safe_local_iterator&,
> _Unchecked)): Delegate to the correct
>          base classes constructors.
>
> Tested under Linux x86_64 _GLIBCXX_DEBUG mode.
>
> François
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20260714/45bcc178/attachment.htm>


More information about the Libstdc++ mailing list