public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r11-10134] libstdc++: Add noexcept to std::launch operators
Date: Thu,  7 Jul 2022 23:33:36 +0000 (GMT)	[thread overview]
Message-ID: <20220707233336.2ED173842AE3@sourceware.org> (raw)

https://gcc.gnu.org/g:7f66dfbe4cba07458e224486e0dd6ff1ece321d3

commit r11-10134-g7f66dfbe4cba07458e224486e0dd6ff1ece321d3
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu May 12 19:33:58 2022 +0100

    libstdc++: Add noexcept to std::launch operators
    
    libstdc++-v3/ChangeLog:
    
            * include/std/future (launch): Make operators noexcept.
    
    (cherry picked from commit 8659bcd6b7e692a9a516cd57bb19303a2efe78ba)

Diff:
---
 libstdc++-v3/include/std/future | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/libstdc++-v3/include/std/future b/libstdc++-v3/include/std/future
index f5d8da472f5..88478860c7d 100644
--- a/libstdc++-v3/include/std/future
+++ b/libstdc++-v3/include/std/future
@@ -139,34 +139,34 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     deferred = 2
   };
 
-  constexpr launch operator&(launch __x, launch __y)
+  constexpr launch operator&(launch __x, launch __y) noexcept
   {
     return static_cast<launch>(
 	static_cast<int>(__x) & static_cast<int>(__y));
   }
 
-  constexpr launch operator|(launch __x, launch __y)
+  constexpr launch operator|(launch __x, launch __y) noexcept
   {
     return static_cast<launch>(
 	static_cast<int>(__x) | static_cast<int>(__y));
   }
 
-  constexpr launch operator^(launch __x, launch __y)
+  constexpr launch operator^(launch __x, launch __y) noexcept
   {
     return static_cast<launch>(
 	static_cast<int>(__x) ^ static_cast<int>(__y));
   }
 
-  constexpr launch operator~(launch __x)
+  constexpr launch operator~(launch __x) noexcept
   { return static_cast<launch>(~static_cast<int>(__x)); }
 
-  inline launch& operator&=(launch& __x, launch __y)
+  inline launch& operator&=(launch& __x, launch __y) noexcept
   { return __x = __x & __y; }
 
-  inline launch& operator|=(launch& __x, launch __y)
+  inline launch& operator|=(launch& __x, launch __y) noexcept
   { return __x = __x | __y; }
 
-  inline launch& operator^=(launch& __x, launch __y)
+  inline launch& operator^=(launch& __x, launch __y) noexcept
   { return __x = __x ^ __y; }
 
   /// Status code for futures


                 reply	other threads:[~2022-07-07 23:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220707233336.2ED173842AE3@sourceware.org \
    --to=redi@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@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).