public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely@redhat.com>
To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Re: [committed] libstdc++: Include scope ID in net::internet::address_v6::to_string()
Date: Fri, 12 Feb 2021 15:21:17 +0000	[thread overview]
Message-ID: <20210212152117.GI3008@redhat.com> (raw)
In-Reply-To: <YCaa5/i0f9b0Chm2@redhat.com>

On 12/02/21 15:12 +0000, Jonathan Wakely wrote:
>@@ -364,9 +378,7 @@ namespace ip
>     static constexpr address_v6
>     loopback() noexcept
>     {
>-      address_v6 __addr;
>-      __addr._M_bytes[15] = 1;
>-      return __addr;
>+      return {bytes_type{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}};
>     }

Oops, this was supposed to be a separate commit. The previous version
was only constexpr in C++17 and later, which is why I changed it.



      reply	other threads:[~2021-02-12 15:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-12 15:12 Jonathan Wakely
2021-02-12 15:21 ` Jonathan Wakely [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210212152117.GI3008@redhat.com \
    --to=jwakely@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=libstdc++@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).