[committed] libstdc++: Add noexcept to std::launch operators

Message ID 20220513200113.4138686-1-jwakely@redhat.com
State Committed
Commit 8659bcd6b7e692a9a516cd57bb19303a2efe78ba
Headers
Series [committed] libstdc++: Add noexcept to std::launch operators |

Commit Message

Jonathan Wakely May 13, 2022, 8:01 p.m. UTC
  Tested powerpc64l4-linux, pushed to trunk.

-- >8 --

libstdc++-v3/ChangeLog:

	* include/std/future (launch): Make operators noexcept.
---
 libstdc++-v3/include/std/future | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
  

Patch

diff --git a/libstdc++-v3/include/std/future b/libstdc++-v3/include/std/future
index 3d5d793a08e..f7de8ddb0bc 100644
--- a/libstdc++-v3/include/std/future
+++ b/libstdc++-v3/include/std/future
@@ -147,34 +147,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