I'm working on this framework to building my custom routing simulation . However, When it comes to template class vanetza::geonet::PendingPacketb(in vanetza/geonet/pending_packet.hpp), I meet a trouble using the constructor:
then I get the error that
error: conversion from ‘std::_Bind_helper<false, std::function<void(Packet&&, const vanetza::MacAddress&, Extend::RouteCtrl*&&)>&, const std::_Placeholder<1>&, const vanetza::MacAddress&, Extend::RouteCtrl*&>::type’ {aka ‘std::_Bind<std::function<void(Packet &&, const vanetza::MacAddress&, Extend::RouteCtrl*&&)>(std::_Placeholder<1>, vanetza::MacAddress, Extend::RouteCtrl*)>’} to non-scalar type ‘std::function<void Packet &&)>’ requested
I've get no idea to solve the problem. Can you give some advice sir?
Unfortunately, you have not shared the code invoking the PendingPacket constructor leading to this error. Without a little bit more information about your changes, I have hardly a chance to assist you.
Hi @riebl
I'm working on this framework to building my custom routing simulation . However, When it comes to template class vanetza::geonet::PendingPacketb(in vanetza/geonet/pending_packet.hpp), I meet a trouble using the
constructor
:then I get the error that
error: conversion from ‘std::_Bind_helper<false, std::function<void(Packet&&, const vanetza::MacAddress&, Extend::RouteCtrl*&&)>&, const std::_Placeholder<1>&, const vanetza::MacAddress&, Extend::RouteCtrl*&>::type’ {aka ‘std::_Bind<std::function<void(Packet &&, const vanetza::MacAddress&, Extend::RouteCtrl*&&)>(std::_Placeholder<1>, vanetza::MacAddress, Extend::RouteCtrl*)>’} to non-scalar type ‘std::function<void Packet &&)>’ requested
I've get no idea to solve the problem. Can you give some advice sir?Best regards.