Please help to resolve this log " call to ‘doParsimPacking’ is ambiguous " and " no matching function for call to ‘doParsimUnpacking’ "

  c++, inet, omnet++

I have run c++ on OMNeT++ so i see this error

" call to ‘doParsimPacking’ is ambiguous "
" no matching function for call to ‘doParsimUnpacking’ "

This link is picture error
https://i.ibb.co/kDGN748/error1.png

This is example code

void TLVOptions::parsimPack(cCommBuffer *b) PARSIMPACK_CONST
{
    TLVOptions_Base::parsimPack(b);
    TLVOptionVector::size_type s = optionVector.size();
    doParsimPacking(b, s);
    for (auto opt: optionVector)
        b->packObject(opt);
}

void TLVOptions::parsimUnpack(cCommBuffer *b)
{
    TLVOptions_Base::parsimUnpack(b);
    TLVOptionVector::size_type s;
    doParsimUnpacking(b, s);
    for (TLVOptionVector::size_type i = 0; i < s; i++)
        optionVector.push_back(check_and_cast<TLVOptionBase *>(b->unpackObject()));
}

Source: Windows Questions C++

LEAVE A COMMENT