On Thu, Mar 6, 2025 at 6:33 AM Jonathan Wakely <jwak...@redhat.com> wrote:
>
> This destructor declaration serves no purpose, as pointed out by LWG
> 3903 which was approved at Varna, June 2023.
>
> libstdc++-v3/ChangeLog:
>
>         * include/std/span (span::~span): Remove, as per LWG 3903.

LGTM

> ---
>
> Tested x86_64-linux.
>
>  libstdc++-v3/include/std/span | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/libstdc++-v3/include/std/span b/libstdc++-v3/include/std/span
> index 247b942dc3b..49ab9109d83 100644
> --- a/libstdc++-v3/include/std/span
> +++ b/libstdc++-v3/include/std/span
> @@ -257,8 +257,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
>         : _M_ptr(__s.data()), _M_extent(__s.size())
>         { }
>
> -      ~span() noexcept = default;
> -
>        constexpr span&
>        operator=(const span&) noexcept = default;
>
> --
> 2.48.1
>

Reply via email to