On Tue, Jul 15, 2003 at 03:48:41PM +0300, Martin Vermeer wrote:
> using std::vector;
> using std::bind2nd;
> using std::remove_if;

You want  list::remove_if, not the general one.

> void BranchList::remove(string const & s)
> {
>       remove_if(list.begin(), list.end(), bind2nd(pfn(), s));
> }

void BranchList::remove(string const & s)
{
        list.remove_if(bind2nd(pfn(), s));
}

or similar should to the trick.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one.     (T. Jefferson or B. Franklin or both...)

Reply via email to