we are porting our application from HP to linux. I have encountered a roadblock trying to compile an important module. Below is a simplified version of that code. This compiles in HP (aCC compiler) but linux g++ 4.8.2 gives below error -
void test
{
vector<int>::iterator p1;
vector<int> vec;
vec.push_back(1);
vec.push_back(2);
p1 = vec.begin();
while ( p1!= vec.end())
{
xyz(p1);
p1++;
}
}
void xyz(int* i)
{
//do something here
}
error: no matching function for call to 'DBAccess::xyz(std::vector::iterator&)' xyz(p1); ^ note: candidate is: In file included from DBAccess.pc:18:0: ../include/DBAccess.h:59:7: note: void DBAccess::xyz(int*) void xyz(int* i);