Skip to content

Commit

Permalink
For tbb >= 2021 make PublishTask::operator() const
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro committed Feb 27, 2022
1 parent f1fadd0 commit 8111c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gazebo/transport/Node.hh
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ namespace gazebo
public: tbb::task *execute()
#else
/// \brief Executes the publish task.
public: void operator()()
public: void operator()() const
#endif
{
this->pub->WaitForConnection();
this->pub->Publish(*this->msg, true);
this->pub->SendMessage();
delete this->msg;
this->pub.reset();
#if TBB_VERSION_MAJOR < 2021
this->pub.reset();
return NULL;
#endif
}
Expand Down

0 comments on commit 8111c4f

Please sign in to comment.