[Xorp-hackers] xorp callback

Selçuk Cevher cevhers at gmail.com
Fri Jun 27 05:23:06 PDT 2008


Of course, I am including libxorp/callback.hh.

By the way, I already resolved the problem. The problem was the
references I used as input arguments for the callback. I just changed
them into values.

Thanks,
Selcuk

On 6/27/08, Bruce M. Simpson <bms at icir.org> wrote:
> Selçuk Cevher wrote:
>> ...
>> Here is the error I get:
>>
>> error: no matching function for call to `callback(XrlshaNode* const,
>> void (XrlshaNode::*)(uint32_t&, uint32_t&), uint32_t&, uint32_t&)'
>>
>> Should I overload callback() function ? If yes, which xorp files
>> should I possibly modify ?
>>
>
> Are you including libxorp/callback.hh?
>
> You're using less than the maximum number of arguments -- only 2 bound
> arguments in this case -- so that isn't the problem; however I'm not
> sure about references for callback arguments, pass-by-value is known to
> work. Try using pointers instead?
>
>



More information about the Xorp-hackers mailing list