Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7650 Discussions

Issue with compilation where it works on MSVC and GCC

Omnisip
Beginner
150 Views
4>..\\..\\..\\icestack\\reflow\\Flow.cxx(936): error : no operator "==" matches these operands
4> operand types are: const resip::Data == const resip::Data
4> if (candIt->mRemoteCandidate.getFoundation() == nominatedCandidatePair->mRemoteCandidate.getFoundation())

both functions return const resip::Data& not const resip::Data.

Also, rutil/Data.hxx included properly and operator== is declared in at least 2 places.

friend bool operator==(const resip::Data& lhs, const resip::Data& rhs); in the class definition

and

I also after trying to fight with this compiler added:

bool operator==(const Data& lhs, const Data& rhs);

All of course this is in the resip namespace, which at the top of the file is imported via:

using namespace resip;

Dan
0 Kudos
1 Reply
Om_S_Intel
Employee
150 Views
It would be nice if you can help with testcase to reproduce the issue.
Reply