Boost logo

Boost Users :

From: Edward Diener (eddielee_at_[hidden])
Date: 2002-08-12 20:15:23


"Albrecht Fritzsche" <albrecht.fritzsche_at_[hidden]> wrote in message
news:3D583548.20202_at_tiscali-dsl.de...
> Consider the following code:
>
> class Publisher {
> typedef boost::function<void> Function;
> public:
> void SetChecker(const Function& Callback){ }
> };
>
> class Manager {
> public:
> Manager();
> private:
> void Check() {}
> };
>
> Manager::Manager()
> {
> Publisher d;
> d.SetChecker(std::mem_fun(&Manager::Check));

try:

      d.SetChecker(boost::bind(&Manager::Check,this));

> }


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