Boost logo

Boost Users :

From: Misiu (misiu75_at_[hidden])
Date: 2007-03-13 05:47:57


> You can't compare two function<> objects with ==. What you can do is compare
> a function<> with the actual contents. That is,
>
> void f();
>
> function<void()> f2( f );
>
> f2 == f; // true
> f2 == f2; // fails at compile time
>
> So if you pass the actual object as 'fun' above, instead of converting it to
> a function<> first, you should be able to use find_if (or just find).
>
Thanks a lot, it works.

Best regards,
Bartek


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net