Skip to content

Commit 142164e

Browse files
committed
Add noexcept specifier to move constructor and move assignment operator
1 parent c7c5ca7 commit 142164e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stl/inc/future

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,9 +1268,9 @@ public:
12681268
template <class _Fty2, enable_if_t<!is_same_v<_Remove_cvref_t<_Fty2>, packaged_task>, int> = 0>
12691269
explicit packaged_task(_Fty2&& _Fnarg) : _MyPromise(new _MyStateType(_STD forward<_Fty2>(_Fnarg))) {}
12701270

1271-
packaged_task(packaged_task&&) = default;
1271+
packaged_task(packaged_task&&) noexcept = default;
12721272

1273-
packaged_task& operator=(packaged_task&&) = default;
1273+
packaged_task& operator=(packaged_task&&) noexcept = default;
12741274

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

0 commit comments

Comments
 (0)