summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-05-12 19:33:58 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-05-27 18:32:51 +0100
commitd2b9fdedcd0b6152ba9fff91ad810dad835096dd (patch)
treee9e4d7f9975db7cf2554c0df6f2b8fd665306ede /libstdc++-v3
parent2c11a9a380e7af333e19d6e576a889646d699b2a (diff)
libstdc++: Add noexcept to std::launch operators
libstdc++-v3/ChangeLog: * include/std/future (launch): Make operators noexcept. (cherry picked from commit 8659bcd6b7e692a9a516cd57bb19303a2efe78ba)
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/include/std/future14
1 files changed, 7 insertions, 7 deletions
diff --git a/libstdc++-v3/include/std/future b/libstdc++-v3/include/std/future
index a9268cade91..3bdbc636f69 100644
--- a/libstdc++-v3/include/std/future
+++ b/libstdc++-v3/include/std/future
@@ -140,34 +140,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