Boost logo

Boost Users :

Subject: Re: [Boost-users] Comparing boost bind object with a pointer to member function
From: Peter Dimov (pdimov_at_[hidden])
Date: 2010-08-31 04:46:08

"jej" wrote:
> boost::function<void (const Data&)> boundfunc =
> boost::bind(&Foo::FuncTwo, &fx, _1);
> if(boundfunc == &Foo::FuncTwo)

If you compare boundfunc to its actual value:

if( boundfunc == boost::bind(&Foo::FuncTwo, &fx, _1) )

does it not work?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at