Skip to content

Commit

Permalink
Explicitly spell the noexcept-specifier of the move constructor and m…
Browse files Browse the repository at this point in the history
…ove assignment operator of packaged_task (#4940)
  • Loading branch information
heckerpowered authored Sep 9, 2024
1 parent 0008e2f commit e067e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stl/inc/future
Original file line number Diff line number Diff line change
Expand Up @@ -1268,9 +1268,9 @@ public:
template <class _Fty2, enable_if_t<!is_same_v<_Remove_cvref_t<_Fty2>, packaged_task>, int> = 0>
explicit packaged_task(_Fty2&& _Fnarg) : _MyPromise(new _MyStateType(_STD forward<_Fty2>(_Fnarg))) {}

packaged_task(packaged_task&&) = default;
packaged_task(packaged_task&&) noexcept = default;

packaged_task& operator=(packaged_task&&) = default;
packaged_task& operator=(packaged_task&&) noexcept = default;

#if _HAS_FUNCTION_ALLOCATOR_SUPPORT
template <class _Fty2, class _Alloc, enable_if_t<!is_same_v<_Remove_cvref_t<_Fty2>, packaged_task>, int> = 0>
Expand Down

0 comments on commit e067e3e

Please sign in to comment.