Boost logo

Boost :

From: Giovanni Bajo (giovannibajo_at_[hidden])
Date: 2003-03-20 08:01:08


----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
To: "Boost mailing list" <boost_at_[hidden]>
Sent: Thursday, March 20, 2003 1:12 PM
Subject: Re: [boost] boost::bind woes

> Nope, it fails on Comeau, too, but in the prelinker stage.

Right, I'm sorry.

> If I understand your problem correctly, you need to replace
>
> Foo(Bar1);
>
> with
>
> Foo(bind(Bar1, _1));
>
> You can now remove the bind() in Foo, it is equivalent to cb(a, b).

That's right. Since Foo() is my public function, I was trying to bring all
the "dirty" work inside, this is why I was trying such a code. Ok, never
mind, thank you for your quick answer.

Giovanni Bajo


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk