J
John Black
Hi,
I have some code like this,
itr = find_if(this->pool.begin(), this->pool.end(),
bind2nd(mem_fun_ref(&Pool::isAvailable),
make_pair(base, high)));
But compiler always complains a lot STL template instantiation
errors.
My class definition is like this,
class Pool{
public:
vector<pair<int, int> > pool;
bool isAvailable(pair<int, int>);
void func();
};
and the above find_if is a statement with Pool::func().
Thanks.
I have some code like this,
itr = find_if(this->pool.begin(), this->pool.end(),
bind2nd(mem_fun_ref(&Pool::isAvailable),
make_pair(base, high)));
But compiler always complains a lot STL template instantiation
errors.
My class definition is like this,
class Pool{
public:
vector<pair<int, int> > pool;
bool isAvailable(pair<int, int>);
void func();
};
and the above find_if is a statement with Pool::func().
Thanks.