J
John Black
Hi,
I have this code piece,
vector<int> v1, v2;
vector<pair<int, int> > uups;
....
transform(v1.begin(), v1.end(), v2.begin(), uups.end(),
ptr_fun(make_pair));
But my gcc compiler complains that "no matching function for call to
`ptr_fun(<unknown type>". Do you know what's wrong here?
Thanks.
I have this code piece,
vector<int> v1, v2;
vector<pair<int, int> > uups;
....
transform(v1.begin(), v1.end(), v2.begin(), uups.end(),
ptr_fun(make_pair));
But my gcc compiler complains that "no matching function for call to
`ptr_fun(<unknown type>". Do you know what's wrong here?
Thanks.