gz-transport
gz-transport copied to clipboard
Can't use auto when defining lambda function callbacks for methods like 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 type auto
, then compilation fails when passing this lambda function into the Advertise
method. An example can be found here.