public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely@redhat.com>
To: "François Dumont" <frs.dumont@gmail.com>
Cc: "libstdc++@gcc.gnu.org" <libstdc++@gcc.gnu.org>,
	gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: PR libstdc++/68222 Hide safe iterator operators
Date: Tue, 07 Aug 2018 22:39:00 -0000	[thread overview]
Message-ID: <20180807223919.GR25399@redhat.com> (raw)
In-Reply-To: <5b2fbf84-6530-8aa8-0730-e892e681a12f@gmail.com>

On 02/08/18 22:16 +0200, François Dumont wrote:
>+#if __cplusplus >= 201103L
>+      /** @brief Copy assignment. */
>+      _Safe_tagged_iterator&
>+      operator=(const _Safe_tagged_iterator&) = default;
>+
>+      /** @brief Move assignment. */
>+      _Safe_tagged_iterator&
>+      operator=(_Safe_tagged_iterator&&) = default;
>+#else
>+      /**
>+       * @brief Copy assignment.
>+       */
>+      _Safe_tagged_iterator&
>+      operator=(const _Safe_tagged_iterator& __x) _GLIBCXX_NOEXCEPT

This _GLIBCXX_NOEXCEPT can be removed, because it expands to nothing
for C++98 mode.


>+      {
>+	_Safe_base::operator=(__x);
>+	return *this;
>+      }
>+#endif

      parent reply	other threads:[~2018-08-07 22:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-02 20:16 François Dumont
2018-08-07 13:47 ` Jonathan Wakely
2018-08-07 22:41   ` Jonathan Wakely
2018-08-18 20:31     ` François Dumont
2018-08-21  9:33       ` Jonathan Wakely
2018-08-21 20:18         ` François Dumont
     [not found]           ` <20180823075136.GR4149@redhat.com>
     [not found]             ` <20180823142956.GV4149@redhat.com>
2018-08-23 15:23               ` Jonathan Wakely
2018-08-07 22:39 ` 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=20180807223919.GR25399@redhat.com \
    --to=jwakely@redhat.com \
    --cc=frs.dumont@gmail.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).