equal函数调用出错
但是编译的时候会认为库文件出错,所以不予提示行号
myVector[3]=81;
if(equal(myVector.begin(),myVector.end(),myPredicate))//这行equal出错,不知道调用的是哪个重载
{
cout<<"The contents of both sequences are equal.\n";
}
我猜你想这么写
if(equal(myVector.begin(),myVector.end(),ints,myPredicate))
{
cout<<"The contents of both sequences are equal.\n";
}