diff options
Diffstat (limited to 'libstdc++-v3/include/std/thread')
-rw-r--r-- | libstdc++-v3/include/std/thread | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/thread b/libstdc++-v3/include/std/thread index 887ee57..080036e 100644 --- a/libstdc++-v3/include/std/thread +++ b/libstdc++-v3/include/std/thread @@ -456,7 +456,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION operator=(const jthread&) = delete; jthread& - operator=(jthread&&) noexcept = default; + operator=(jthread&& __other) noexcept + { + std::jthread(std::move(__other)).swap(*this); + return *this; + } void swap(jthread& __other) noexcept |