We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eef5815 commit c298be0Copy full SHA for c298be0
src/detail/task_self_deleting.cpp
@@ -20,7 +20,7 @@ promise_self_deleting::promise_self_deleting(promise_self_deleting&& other)
20
21
auto promise_self_deleting::operator=(promise_self_deleting&& other) -> promise_self_deleting&
22
{
23
- if (std::addressof(other) != nullptr)
+ if (std::addressof(other) != this)
24
25
m_executor_size = std::exchange(other.m_executor_size, nullptr);
26
}
0 commit comments