You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title states, when trying to call a method like Advertise with a lambda function callback to create a service, the lambda function must be created before the Advertise method, and must also be fully defined - if the lambda function is created using type auto, then compilation fails when passing this lambda function into the Advertise method. An example can be found here.
The text was updated successfully, but these errors were encountered:
Taking a look at EntityComponentManager::Each in ign-gazebo, I notice that an identity is used there, which might be why you don't need to pre-define a lambda function when calling EntityComponentManager::Each (I don't see an identity being used for Node::Advertise).
As the title states, when trying to call a method like Advertise with a lambda function callback to create a service, the lambda function must be created before the
Advertise
method, and must also be fully defined - if the lambda function is created using typeauto
, then compilation fails when passing this lambda function into theAdvertise
method. An example can be found here.The text was updated successfully, but these errors were encountered: