On Tue, 8 Jul 2025 at 08:35, Tomasz Kamiński <tkami...@redhat.com> wrote:
>
> libstdc++-v3/ChangeLog:
>
>         * include/std/queue (formatter<queue<_Tp, _Container>, _CharT>)
>         (formatter<priority_queue<_Tp, _Container, _Compare>, _CharT>):
>         Add _GLIBCXX_RESOLVE_LIB_DEFECTS comments.

OK thanks


> ---
> I would send this as committed, but realized, that there is hight change
> of there being a type somewhere.
>
>  libstdc++-v3/include/std/queue | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/libstdc++-v3/include/std/queue b/libstdc++-v3/include/std/queue
> index 90525897da7..1b76088b31b 100644
> --- a/libstdc++-v3/include/std/queue
> +++ b/libstdc++-v3/include/std/queue
> @@ -105,7 +105,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
>         { return _M_f.format(__a.c, __fc); }
>
>      private:
> -      // Standard uses formatter<ref_view<_Container>, _CharT>.
> +      // Standard uses formatter<ref_view<_Container>, _CharT>, but 
> range_formatter
> +      // provides same behavior.
> +      // _GLIBCXX_RESOLVE_LIB_DEFECTS
> +      // 3881. Incorrect formatting of container adapters backed by 
> std::string
>        range_formatter<_Tp, _CharT> _M_f;
>      };
>
> @@ -136,7 +139,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
>         { return _M_f.format(__a.c, __fc); }
>
>      private:
> -      // Standard uses formatter<ref_view<_Container>, _CharT>.
> +      // Standard uses formatter<ref_view<_Container>, _CharT>, but 
> range_formatter
> +      // provides same behavior.
> +      // _GLIBCXX_RESOLVE_LIB_DEFECTS
> +      // 3881. Incorrect formatting of container adapters backed by 
> std::string
>        range_formatter<_Tp, _CharT> _M_f;
>      };
>
> --
> 2.49.0
>

Reply via email to