Skip to content

Commit

Permalink
strange bind behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
rex-schilasky committed Dec 4, 2024
1 parent b3e963f commit 6409421
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ecal/core/include/ecal/msg/dynamic.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ namespace eCAL
std::lock_guard<std::mutex> callback_lock(m_cb_callback_mutex);
m_cb_callback = callback_;
}
auto callback = std::bind(&CDynamicMessageSubscriber::ReceiveCallback, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3);

ReceiveIDCallbackT callback = std::bind(&CDynamicMessageSubscriber::ReceiveCallback, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3);
return(CSubscriber::AddReceiveCallback(callback));
}

Expand Down Expand Up @@ -222,7 +223,7 @@ namespace eCAL
}

private:
void ReceiveCallback(const Registration::STopicId& topic_id_, const SDataTypeInformation& topic_info_, const struct eCAL::SReceiveCallbackData& data_)
void ReceiveCallback(const Registration::STopicId& topic_id_, const SDataTypeInformation& topic_info_, const struct SReceiveCallbackData& data_)
{
MsgReceiveCallbackT fn_callback = nullptr;
{
Expand Down

0 comments on commit 6409421

Please sign in to comment.