Currently, we often pass around instances of "const shared_ptr<AbstractTask> &"
even though the called code does not participate in the ownership of the task. In
these situations, we should rather pass the task by const reference, i.e., "const
AbstractTask &".
|