Boost logo

Boost Users :

From: Albrecht Fritzsche (albrecht.fritzsche_at_[hidden])
Date: 2002-08-12 17:23:04


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));
}

How can I get this to work? I always get an error when
compiling the last line stating

"..boost\function\function_template.hpp(127) : error C2660: '()' :
    Funktion akzeptiert keine 0 Parameter"

Ah, the compiler is VisC++ 6.

Thanks for any help
Ali


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