Skip to content

Commit

Permalink
fix: increment sender count in copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Oct 12, 2023
1 parent 4d7e80a commit affb624
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/cr/sender.inl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ namespace cr
}

template <typename T>
sender<T>::sender(const sender &) = default;
sender<T>::sender(const sender &other) : m_queue(other.m_queue)
{
m_queue->senders++;
}

template <typename T>
sender<T>::sender(sender &&other) noexcept : m_queue(std::move(other.m_queue))
Expand Down

0 comments on commit affb624

Please sign in to comment.