gz-transport icon indicating copy to clipboard operation
gz-transport copied to clipboard

Can't use auto when defining lambda function callbacks for methods like Node::Advertise

Open adlarkin opened this issue 3 years ago • 1 comments

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.

adlarkin avatar Nov 19 '20 03:11 adlarkin