Omnet++ 无法从L3Address调用inet函数

Omnet++ 无法从L3Address调用inet函数,omnet++,inet,Omnet++,Inet,我正在尝试将这个旧代码IPvXAddress从inet移植到L3地址。但是收到了这个错误: '对'inet::L3Address::get()的调用没有匹配的函数' 这是我的代码: L3Address addr = L3AddressResolver().resolve(token); if (excludeLocalDestAddresses && rt && rt->isLocalAddress(addr.get())) continue; 这是ine

我正在尝试将这个旧代码IPvXAddress从inet移植到L3地址。但是收到了这个错误:

'对'inet::L3Address::get()的调用没有匹配的函数'

这是我的代码:

L3Address addr = L3AddressResolver().resolve(token);
if (excludeLocalDestAddresses && rt && rt->isLocalAddress(addr.get()))
continue;
这是inet::L3Address的get()函数:

uint64 L3Address::get(AddressType type) const
{
    if (getType() == type)
        return lo;
    else
        throw cRuntimeError("Address is not of the given type");
}

好的,您没有为
get()
函数提供
AddressType
参数。它应该类似于:
get(AddressType::IPv4)